Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001282/0.001282, allocations: 109 kB / 16.42 MB, free: 6.457 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.001246/0.001246, allocations: 189.4 kB / 17.35 MB, free: 5.715 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.623/2.623, allocations: 461.7 MB / 0.7352 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.001411, allocations: 67.89 kB / 1.055 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8575/0.8589, allocations: 157.4 MB / 1.208 GB, free: 13.68 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003559/0.8625, allocations: 1.953 MB / 1.21 GB, free: 11.72 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001504/0.864, allocations: 0.709 MB / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002009/0.8643, allocations: 0 / 1.211 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002734/0.8645, allocations: 83.64 kB / 1.211 GB, free: 10.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0001901/0.8648, allocations: 95.56 kB / 1.211 GB, free: 10.83 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006736/0.8655, allocations: 182.8 kB / 1.211 GB, free: 10.66 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0004044/0.8659, allocations: 271.4 kB / 1.211 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.8661, allocations: 69.69 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001936/0.8663, allocations: 115.6 kB / 1.212 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002412/0.8665, allocations: 159.5 kB / 1.212 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 5.648e-05/0.8666, allocations: 20 kB / 1.212 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001655/0.8668, allocations: 87.94 kB / 1.212 GB, free: 9.953 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 8.635e-05/0.8669, allocations: 63.77 kB / 1.212 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.867, allocations: 107.3 kB / 1.212 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004057/0.8674, allocations: 303 kB / 1.212 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.8674, allocations: 4 kB / 1.212 GB, free: 9.484 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.356e-06/0.8674, allocations: 3.984 kB / 1.212 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.105e-05/0.8674, allocations: 0 / 1.212 GB, free: 9.48 MB / 0.9356 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.0009151/0.8684, allocations: 0.5759 MB / 1.213 GB, free: 8.852 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.8684, allocations: 8.031 kB / 1.213 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.8685, allocations: 32.56 kB / 1.213 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005051/0.869, allocations: 294.9 kB / 1.213 GB, free: 8.488 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.844e-05/0.8691, allocations: 16.38 kB / 1.213 GB, free: 8.473 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.923e-05/0.8691, allocations: 16.38 kB / 1.213 GB, free: 8.457 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003942/0.8695, allocations: 227.8 kB / 1.213 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.8695, allocations: 0 / 1.213 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.334e-05/0.8696, allocations: 11.98 kB / 1.213 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.8696, allocations: 0 / 1.213 GB, free: 8.199 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003233/0.8699, allocations: 140.3 kB / 1.214 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009054/0.8708, allocations: 0.6768 MB / 1.214 GB, free: 7.328 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003591/0.8712, allocations: 174.4 kB / 1.214 GB, free: 7.148 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.8714, allocations: 96.95 kB / 1.214 GB, free: 7.051 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.8714, allocations: 4 kB / 1.214 GB, free: 7.047 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002704/0.8717, allocations: 165 kB / 1.215 GB, free: 6.867 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=15): time 3.427e-06/0.8717, allocations: 96 / 1.215 GB, free: 6.867 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15): time 0.000689/0.8724, allocations: 381.1 kB / 1.215 GB, free: 6.484 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.838e-05/0.8725, allocations: 136.5 kB / 1.215 GB, free: 6.32 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.8728, allocations: 278.6 kB / 1.215 GB, free: 6.035 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.8728, allocations: 33.7 kB / 1.215 GB, free: 5.996 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.8729, allocations: 148.3 kB / 1.216 GB, free: 5.848 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.778e-05/0.873, allocations: 51.34 kB / 1.216 GB, free: 5.797 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.459e-05/0.873, allocations: 45.7 kB / 1.216 GB, free: 5.746 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.8732, allocations: 334.8 kB / 1.216 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.8734, allocations: 87.95 kB / 1.216 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.8735, allocations: 131.9 kB / 1.216 GB, free: 5.18 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000317/0.8739, allocations: 252.6 kB / 1.216 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.8739, allocations: 96 / 1.216 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005432/0.8744, allocations: 337.3 kB / 1.217 GB, free: 4.57 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.334e-05/0.8745, allocations: 41.69 kB / 1.217 GB, free: 4.523 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.8745, allocations: 4.094 kB / 1.217 GB, free: 4.52 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.8745, allocations: 0 / 1.217 GB, free: 4.52 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.8747, allocations: 27.92 kB / 1.217 GB, free: 4.492 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.8747, allocations: 0 / 1.217 GB, free: 4.492 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001281/0.8748, allocations: 23.83 kB / 1.217 GB, free: 4.469 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.8748, allocations: 8 kB / 1.217 GB, free: 4.461 MB / 0.9356 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.0001829/0.875, allocations: 197.1 kB / 1.217 GB, free: 4.254 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.344e-05/0.8751, allocations: 27.72 kB / 1.217 GB, free: 4.227 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.782e-05/0.8751, allocations: 37.77 kB / 1.217 GB, free: 4.188 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.8751, allocations: 0 / 1.217 GB, free: 4.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.8752, allocations: 4 kB / 1.217 GB, free: 4.184 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.89e-05/0.8752, allocations: 92.83 kB / 1.217 GB, free: 4.074 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.359e-05/0.8753, allocations: 8 kB / 1.217 GB, free: 4.066 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.8754, allocations: 15.92 kB / 1.217 GB, free: 4.051 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.334e-05/0.8755, allocations: 27.95 kB / 1.217 GB, free: 4.023 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007492/0.8762, allocations: 485.8 kB / 1.218 GB, free: 3.523 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007647/0.877, allocations: 0.6124 MB / 1.218 GB, free: 2.891 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001989/0.8772, allocations: 124 kB / 1.218 GB, free: 2.77 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001794/0.8774, allocations: 202 kB / 1.219 GB, free: 2.578 MB / 0.9356 GB Notification: Performance of Backend: time 3.11e-07/0.8774, allocations: 0 / 1.219 GB, free: 2.578 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0007117/0.8781, allocations: 303.4 kB / 1.219 GB, free: 2.266 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0009418/0.8791, allocations: 0.921 MB / 1.22 GB, free: 1.281 MB / 0.9356 GB Notification: Performance of Templates: time 0.006956/0.886, allocations: 3.028 MB / 1.223 GB, free: 14.27 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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