Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001361/0.001361, allocations: 117.9 kB / 16.81 MB, free: 5.758 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.001437/0.001437, allocations: 192.7 kB / 17.77 MB, free: 5.133 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.448/1.448, allocations: 225.6 MB / 244.2 MB, free: 13.91 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.837/2.837, allocations: 476.7 MB / 0.7556 GB, free: 11.34 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 65.02 kB / 1.097 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.37, allocations: 168.7 MB / 1.262 GB, free: 12.98 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00355/0.3735, allocations: 1.96 MB / 1.264 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001344/0.3749, allocations: 0.7168 MB / 1.265 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.375, allocations: 4 kB / 1.265 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002431/0.3752, allocations: 83.64 kB / 1.265 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.3754, allocations: 95.56 kB / 1.265 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006079/0.376, allocations: 191.8 kB / 1.265 GB, free: 9.922 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003344/0.3763, allocations: 259.4 kB / 1.265 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.3765, allocations: 53.83 kB / 1.265 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.3766, allocations: 119.6 kB / 1.265 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002351/0.3769, allocations: 159.5 kB / 1.266 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.419e-05/0.3769, allocations: 20 kB / 1.266 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.3771, allocations: 99.91 kB / 1.266 GB, free: 9.227 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.388e-05/0.3772, allocations: 51.84 kB / 1.266 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.3773, allocations: 111.3 kB / 1.266 GB, free: 9.066 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004354/0.3777, allocations: 310.8 kB / 1.266 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3777, allocations: 8 kB / 1.266 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.914e-06/0.3777, allocations: 0 / 1.266 GB, free: 8.754 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.024e-06/0.3777, allocations: 0 / 1.266 GB, free: 8.754 MB / 0.9825 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.0009593/0.3787, allocations: 0.5971 MB / 1.267 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.3787, allocations: 8.031 kB / 1.267 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.714e-05/0.3788, allocations: 32.8 kB / 1.267 GB, free: 8.062 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005573/0.3794, allocations: 303.1 kB / 1.267 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.419e-05/0.3794, allocations: 16.38 kB / 1.267 GB, free: 7.711 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.3794, allocations: 12.38 kB / 1.267 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004203/0.3799, allocations: 228.3 kB / 1.267 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.117e-06/0.3799, allocations: 0 / 1.267 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.3799, allocations: 4 kB / 1.267 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.3799, allocations: 4 kB / 1.267 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.3802, allocations: 132.3 kB / 1.267 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009287/0.3811, allocations: 0.6925 MB / 1.268 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003899/0.3815, allocations: 150.6 kB / 1.268 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.3816, allocations: 88.83 kB / 1.268 GB, free: 6.32 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.3817, allocations: 7.984 kB / 1.268 GB, free: 6.312 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002932/0.382, allocations: 165.1 kB / 1.269 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.382, allocations: 0 / 1.269 GB, free: 6.133 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.0007294/0.3827, allocations: 371 kB / 1.269 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.793e-05/0.3828, allocations: 136.5 kB / 1.269 GB, free: 5.594 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/0.3831, allocations: 294.5 kB / 1.269 GB, free: 5.293 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.3831, allocations: 29.7 kB / 1.269 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.3833, allocations: 160.3 kB / 1.269 GB, free: 5.098 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.881e-05/0.3833, allocations: 43.67 kB / 1.269 GB, free: 5.055 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-05/0.3834, allocations: 41.61 kB / 1.27 GB, free: 5.008 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3835, allocations: 342.8 kB / 1.27 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000174/0.3837, allocations: 87.97 kB / 1.27 GB, free: 4.578 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002124/0.3839, allocations: 133 kB / 1.27 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000361/0.3843, allocations: 241.2 kB / 1.27 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3843, allocations: 0 / 1.27 GB, free: 4.172 MB / 0.9825 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005411/0.3848, allocations: 335 kB / 1.271 GB, free: 3.832 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.135e-05/0.3849, allocations: 33.7 kB / 1.271 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.3849, allocations: 0 / 1.271 GB, free: 3.793 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.3849, allocations: 4 kB / 1.271 GB, free: 3.789 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.385, allocations: 32.02 kB / 1.271 GB, free: 3.758 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.385, allocations: 4 kB / 1.271 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.3852, allocations: 19.88 kB / 1.271 GB, free: 3.734 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.3852, allocations: 12 kB / 1.271 GB, free: 3.723 MB / 0.9825 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.0002033/0.3854, allocations: 202.8 kB / 1.271 GB, free: 3.512 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.3854, allocations: 27.86 kB / 1.271 GB, free: 3.484 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.844e-05/0.3855, allocations: 25.83 kB / 1.271 GB, free: 3.457 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3855, allocations: 4 kB / 1.271 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-06/0.3855, allocations: 0 / 1.271 GB, free: 3.453 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.82e-05/0.3856, allocations: 112.8 kB / 1.271 GB, free: 3.324 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.458e-05/0.3856, allocations: 4 kB / 1.271 GB, free: 3.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.3858, allocations: 19.92 kB / 1.271 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.1e-05/0.3858, allocations: 19.97 kB / 1.271 GB, free: 3.281 MB / 0.9825 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008214/0.3867, allocations: 481.9 kB / 1.272 GB, free: 2.785 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0008417/0.3875, allocations: 0.6128 MB / 1.272 GB, free: 2.152 MB / 0.9825 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001811/0.3877, allocations: 91.98 kB / 1.272 GB, free: 2.062 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002093/0.3879, allocations: 206 kB / 1.272 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of Backend: time 4.21e-07/0.3879, allocations: 0 / 1.272 GB, free: 1.863 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0007291/0.3886, allocations: 279.5 kB / 1.273 GB, free: 1.574 MB / 0.9825 GB Notification: Performance of SimCode: time 0.0011/0.3897, allocations: 0.9278 MB / 1.274 GB, free: 0.582 MB / 0.9825 GB Notification: Performance of Templates: time 0.007441/0.3972, allocations: 3.115 MB / 1.277 GB, free: 13.49 MB / 0.9981 GB make -j1 -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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