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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00129/0.00129, allocations: 108.2 kB / 15.99 MB, free: 6.348 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.001295/0.001295, allocations: 191.9 kB / 16.91 MB, free: 6.184 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.417/1.417, allocations: 222.9 MB / 240.6 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.823/2.823, allocations: 482.4 MB / 0.755 GB, free: 7.125 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 64.84 kB / 0.924 GB, free: 324 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8373/0.8393, allocations: 162.2 MB / 1.082 GB, free: 1.625 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003292/0.8427, allocations: 2.01 MB / 1.084 GB, free: 220 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001312/0.844, allocations: 0.6888 MB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.8441, allocations: 6.531 kB / 1.085 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002723/0.8444, allocations: 81.12 kB / 1.085 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001561/0.8446, allocations: 86.36 kB / 1.085 GB, free: 15.69 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006073/0.8452, allocations: 167.6 kB / 1.085 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003467/0.8456, allocations: 265.6 kB / 1.086 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001868/0.8458, allocations: 77.45 kB / 1.086 GB, free: 15.45 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.846, allocations: 119.2 kB / 1.086 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002319/0.8462, allocations: 151.3 kB / 1.086 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.625e-05/0.8463, allocations: 19.84 kB / 1.086 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001717/0.8464, allocations: 91.86 kB / 1.086 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.8465, allocations: 66.27 kB / 1.086 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0001146/0.8467, allocations: 104.5 kB / 1.086 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.847, allocations: 232.1 kB / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.847, allocations: 0 / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.314e-06/0.847, allocations: 0 / 1.086 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.195e-06/0.847, allocations: 0.9375 kB / 1.086 GB, free: 15.14 MB / 0.8419 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.0009547/0.848, allocations: 0.5781 MB / 1.087 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.8481, allocations: 10.97 kB / 1.087 GB, free: 14.62 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.558e-05/0.8481, allocations: 31.34 kB / 1.087 GB, free: 14.61 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004724/0.8486, allocations: 297.6 kB / 1.087 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.8486, allocations: 11 kB / 1.087 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.745e-05/0.8487, allocations: 13.78 kB / 1.087 GB, free: 14.34 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004542/0.8492, allocations: 229.7 kB / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.8492, allocations: 0 / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.244e-05/0.8492, allocations: 6.344 kB / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.8492, allocations: 3.641 kB / 1.088 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002878/0.8495, allocations: 131.5 kB / 1.088 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009494/0.8505, allocations: 0.6811 MB / 1.088 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003746/0.8509, allocations: 171.5 kB / 1.089 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.851, allocations: 98.66 kB / 1.089 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.8511, allocations: 2 kB / 1.089 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003691/0.8514, allocations: 169.2 kB / 1.089 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.8515, allocations: 3.938 kB / 1.089 GB, free: 13.39 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0007562/0.8522, allocations: 379.8 kB / 1.089 GB, free: 13.25 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.8523, allocations: 132.1 kB / 1.089 GB, free: 13.09 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003218/0.8527, allocations: 284.8 kB / 1.09 GB, free: 12.94 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.8527, allocations: 28.02 kB / 1.09 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.8528, allocations: 158.9 kB / 1.09 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.528e-05/0.8529, allocations: 43.94 kB / 1.09 GB, free: 12.74 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.241e-05/0.853, allocations: 42.31 kB / 1.09 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.8532, allocations: 339.3 kB / 1.09 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.8533, allocations: 86.77 kB / 1.09 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002112/0.8536, allocations: 132.3 kB / 1.09 GB, free: 12.29 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003483/0.8539, allocations: 238.8 kB / 1.091 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.8539, allocations: 0 / 1.091 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000551/0.8545, allocations: 337.9 kB / 1.091 GB, free: 12 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.601e-05/0.8545, allocations: 36.23 kB / 1.091 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.8546, allocations: 0.9688 kB / 1.091 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.8546, allocations: 2.109 kB / 1.091 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.8547, allocations: 21.78 kB / 1.091 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.8547, allocations: 5.719 kB / 1.091 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.8549, allocations: 26.16 kB / 1.091 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.8549, allocations: 6.891 kB / 1.091 GB, free: 11.95 MB / 0.8419 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.0002076/0.8551, allocations: 203.8 kB / 1.091 GB, free: 11.78 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.576e-05/0.8552, allocations: 24.94 kB / 1.091 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.156e-05/0.8552, allocations: 30.78 kB / 1.091 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.8552, allocations: 1.094 kB / 1.091 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.8552, allocations: 1.312 kB / 1.091 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.8553, allocations: 0 / 1.091 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003294/0.8556, allocations: 293.5 kB / 1.092 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.8556, allocations: 1.5 kB / 1.092 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.8557, allocations: 22.77 kB / 1.092 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.8557, allocations: 1.406 kB / 1.092 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.316e-05/0.8557, allocations: 7.703 kB / 1.092 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.8558, allocations: 4.734 kB / 1.092 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.8558, allocations: 1.125 kB / 1.092 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007834/0.8565, allocations: 465 kB / 1.092 GB, free: 11.29 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.353e-05/0.8566, allocations: 103.9 kB / 1.092 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.374e-05/0.8567, allocations: 9.078 kB / 1.092 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.8568, allocations: 15.64 kB / 1.092 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.815e-05/0.8569, allocations: 24.02 kB / 1.092 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.8569, allocations: 4.953 kB / 1.092 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002236/0.8572, allocations: 204.5 kB / 1.092 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8572, allocations: 3.938 kB / 1.092 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000321/0.8575, allocations: 59.69 kB / 1.092 GB, free: 11.04 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (mot.lowHys.y,mot.uppHys.y,ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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 Backend phase and start with SimCode phase: time 0.0002172/0.8577, allocations: 135.9 kB / 1.093 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.000555/0.8583, allocations: 299.9 kB / 1.093 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.8583, allocations: 0.7188 kB / 1.093 GB, free: 10.79 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002618/0.8586, allocations: 186 kB / 1.093 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.8589, allocations: 37.58 kB / 1.093 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.8601, allocations: 0.5625 MB / 1.094 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.8605, allocations: 0.7542 MB / 1.094 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.731e-05/0.8606, allocations: 18.48 kB / 1.094 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of SimCode: time 3.11e-07/0.8606, allocations: 0 / 1.094 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of Templates: time 0.006904/0.8675, allocations: 3 MB / 1.097 GB, free: 9.266 MB / 0.8419 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=400 -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) Reference file matches