Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 116.2 kB / 16.42 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 183.9 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.556/2.556, allocations: 437 MB / 0.7112 GB, free: 4.406 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 76.08 kB / 1.019 GB, free: 9.457 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.013/1.014, allocations: 151.6 MB / 1.167 GB, free: 3.922 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004037/1.018, allocations: 1.955 MB / 1.169 GB, free: 1.957 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001573/1.02, allocations: 0.709 MB / 1.17 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002106/1.02, allocations: 4 kB / 1.17 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0003022/1.021, allocations: 79.62 kB / 1.17 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001982/1.021, allocations: 99.58 kB / 1.17 GB, free: 1.062 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007543/1.022, allocations: 185.3 kB / 1.17 GB, free: 0.8828 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0005322/1.022, allocations: 263.4 kB / 1.17 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002154/1.022, allocations: 73.67 kB / 1.171 GB, free: 0.5586 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/1.023, allocations: 119.6 kB / 1.171 GB, free: 452 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002687/1.023, allocations: 147.5 kB / 1.171 GB, free: 304 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 5.452e-05/1.023, allocations: 20 kB / 1.171 GB, free: 284 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001851/1.023, allocations: 95.92 kB / 1.171 GB, free: 188 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0001069/1.023, allocations: 51.84 kB / 1.171 GB, free: 136 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001427/1.023, allocations: 115.3 kB / 1.171 GB, free: 20 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0005134/1.024, allocations: 307.1 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/1.024, allocations: 0 / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.924e-06/1.024, allocations: 3.938 kB / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.156e-05/1.024, allocations: 0 / 1.171 GB, free: 15.71 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001377/1.025, allocations: 0.5759 MB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 7.166e-05/1.025, allocations: 19.97 kB / 1.172 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/1.026, allocations: 32.56 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008347/1.026, allocations: 298.9 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/1.026, allocations: 12.38 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.294e-05/1.026, allocations: 12.38 kB / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004889/1.027, allocations: 231.3 kB / 1.173 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/1.027, allocations: 0 / 1.173 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.698e-05/1.027, allocations: 7.984 kB / 1.173 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/1.027, allocations: 4 kB / 1.173 GB, free: 14.42 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002661/1.027, allocations: 132.3 kB / 1.173 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009809/1.028, allocations: 0.6807 MB / 1.173 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003838/1.029, allocations: 170.6 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/1.029, allocations: 96.81 kB / 1.174 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/1.029, allocations: 4 kB / 1.174 GB, free: 13.28 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003054/1.029, allocations: 173.1 kB / 1.174 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=15): time 2.565e-06/1.029, allocations: 0 / 1.174 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of matching and sorting (n=15): time 0.0007487/1.03, allocations: 374.9 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/1.03, allocations: 132.5 kB / 1.174 GB, free: 12.55 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003651/1.031, allocations: 286.5 kB / 1.175 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.824e-05/1.031, allocations: 29.7 kB / 1.175 GB, free: 12.23 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/1.031, allocations: 152.3 kB / 1.175 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.629e-05/1.031, allocations: 51.28 kB / 1.175 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/1.031, allocations: 41.7 kB / 1.175 GB, free: 11.98 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002096/1.031, allocations: 338.8 kB / 1.175 GB, free: 11.64 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/1.031, allocations: 83.95 kB / 1.175 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002786/1.032, allocations: 138.7 kB / 1.175 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004158/1.032, allocations: 244.9 kB / 1.176 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.032, allocations: 0 / 1.176 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005993/1.033, allocations: 327 kB / 1.176 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 6.333e-05/1.033, allocations: 37.69 kB / 1.176 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/1.033, allocations: 4 kB / 1.176 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/1.033, allocations: 0 / 1.176 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/1.033, allocations: 32.02 kB / 1.176 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/1.033, allocations: 0 / 1.176 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/1.033, allocations: 27.83 kB / 1.176 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.62e-05/1.033, allocations: 4 kB / 1.176 GB, free: 10.7 MB / 0.9044 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 (ySet.nextEventScaled,ySet.nextEvent,$PRE.ySet.nextEvent,ySet.last,ySet.b,ySet.a,mot.lowHys.y,$PRE.mot.lowHys.y,mot.uppHys.y,$PRE.mot.uppHys.y,$whenCondition1,mot.int.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002231/1.033, allocations: 199.3 kB / 1.176 GB, free: 10.49 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.999e-05/1.033, allocations: 23.72 kB / 1.176 GB, free: 10.47 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.054e-05/1.034, allocations: 29.92 kB / 1.176 GB, free: 10.44 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/1.034, allocations: 11.94 kB / 1.176 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/1.034, allocations: 0 / 1.176 GB, free: 10.43 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 9.514e-05/1.034, allocations: 92.83 kB / 1.176 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.474e-05/1.034, allocations: 15.98 kB / 1.176 GB, free: 10.3 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/1.034, allocations: 11.94 kB / 1.176 GB, free: 10.29 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/1.034, allocations: 31.95 kB / 1.176 GB, free: 10.26 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008597/1.035, allocations: 487.8 kB / 1.177 GB, free: 9.758 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008598/1.036, allocations: 0.5976 MB / 1.177 GB, free: 9.137 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002113/1.036, allocations: 124 kB / 1.178 GB, free: 9.016 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0002129/1.036, allocations: 206 kB / 1.178 GB, free: 8.816 MB / 0.9044 GB Notification: Performance of Backend: time 4.2e-07/1.036, allocations: 3.938 kB / 1.178 GB, free: 8.812 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0008451/1.037, allocations: 316 kB / 1.178 GB, free: 8.488 MB / 0.9044 GB Notification: Performance of SimCode: time 0.001257/1.038, allocations: 0.9189 MB / 1.179 GB, free: 7.504 MB / 0.9044 GB Notification: Performance of Templates: time 0.007567/1.046, allocations: 3.058 MB / 1.182 GB, free: 4.465 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,mot.y,mot.uppHys.y,mot.delta,ySet.y,mot.lowHys.u,mot.lowHys.y,mot.uppHys.u Variables in the result:mot.add.k1,mot.add.k2,mot.delta,mot.int.initType,mot.int.k,mot.int.limitsAtInit,mot.int.outMax,mot.int.outMin,mot.int.strict,mot.int.y,mot.int.y_start,mot.lowHys.pre_y_start,mot.lowHys.u,mot.lowHys.uHigh,mot.lowHys.uLow,mot.lowHys.y,mot.lowSwi.u3,mot.tClo,mot.tOpe,mot.uppHys.pre_y_start,mot.uppHys.u,mot.uppHys.uHigh,mot.uppHys.uLow,mot.uppHys.y,mot.uppSwi.u1,mot.vClo.k,mot.vClo.y,mot.vOpe.k,mot.vOpe.y,mot.y,mot.y_start,mot.zer.k,time,ySet.offset,ySet.shiftTime,ySet.startTime,ySet.table[1,1],ySet.table[1,2],ySet.table[10,1],ySet.table[10,2],ySet.table[11,1],ySet.table[11,2],ySet.table[12,1],ySet.table[12,2],ySet.table[13,1],ySet.table[13,2],ySet.table[2,1],ySet.table[2,2],ySet.table[3,1],ySet.table[3,2],ySet.table[4,1],ySet.table[4,2],ySet.table[5,1],ySet.table[5,2],ySet.table[6,1],ySet.table[6,2],ySet.table[7,1],ySet.table[7,2],ySet.table[8,1],ySet.table[8,2],ySet.table[9,1],ySet.table[9,2],ySet.timeScale,ySet.y