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.01174/0.01174, allocations: 99.16 kB / 15.73 MB, free: 6.008 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.002283/0.002284, allocations: 192.2 kB / 16.67 MB, free: 5.938 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.536/1.536, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.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.706/2.706, allocations: 437 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 67.91 kB / 1.019 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4195/0.4209, allocations: 151.6 MB / 1.167 GB, free: 6.848 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003381/0.4244, allocations: 1.944 MB / 1.168 GB, free: 4.883 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001316/0.4257, allocations: 0.7207 MB / 1.169 GB, free: 4.156 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.4258, allocations: 4 kB / 1.169 GB, free: 4.152 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.4261, allocations: 79.64 kB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001352/0.4262, allocations: 103.5 kB / 1.169 GB, free: 3.973 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006044/0.4269, allocations: 187.6 kB / 1.17 GB, free: 3.789 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0003304/0.4272, allocations: 259.4 kB / 1.17 GB, free: 3.535 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.4274, allocations: 73.83 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001819/0.4276, allocations: 115.7 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000259/0.4279, allocations: 151.5 kB / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.664e-05/0.4279, allocations: 20 kB / 1.17 GB, free: 3.184 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001919/0.4281, allocations: 95.91 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.4282, allocations: 55.78 kB / 1.17 GB, free: 3.035 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.4284, allocations: 111.3 kB / 1.17 GB, free: 2.926 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005368/0.4289, allocations: 302.8 kB / 1.171 GB, free: 2.629 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.429, allocations: 4 kB / 1.171 GB, free: 2.625 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.124e-06/0.429, allocations: 4 kB / 1.171 GB, free: 2.621 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.878e-05/0.429, allocations: 0 / 1.171 GB, free: 2.621 MB / 0.92 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.001067/0.4301, allocations: 0.5932 MB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.948e-05/0.4301, allocations: 12.03 kB / 1.171 GB, free: 1.961 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.715e-05/0.4302, allocations: 28.75 kB / 1.171 GB, free: 1.934 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005392/0.4308, allocations: 307.1 kB / 1.172 GB, free: 1.598 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.4308, allocations: 16.38 kB / 1.172 GB, free: 1.582 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.135e-05/0.4308, allocations: 12.38 kB / 1.172 GB, free: 1.57 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000416/0.4313, allocations: 223.8 kB / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.4313, allocations: 0 / 1.172 GB, free: 1.328 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.4313, allocations: 4 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.4313, allocations: 7.938 kB / 1.172 GB, free: 1.316 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002552/0.4316, allocations: 128.4 kB / 1.172 GB, free: 1.191 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008857/0.4325, allocations: 0.6886 MB / 1.173 GB, free: 456 kB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003711/0.4329, allocations: 162.6 kB / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001816/0.4331, allocations: 104.8 kB / 1.173 GB, free: 176 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.4331, allocations: 0 / 1.173 GB, free: 176 kB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003081/0.4334, allocations: 169.1 kB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=15): time 1.372e-06/0.4334, allocations: 0 / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of matching and sorting (n=15): time 0.0007098/0.4341, allocations: 373.4 kB / 1.173 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.807e-05/0.4342, allocations: 148.4 kB / 1.174 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000283/0.4345, allocations: 278.6 kB / 1.174 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.4346, allocations: 37.69 kB / 1.174 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.4347, allocations: 152.3 kB / 1.174 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.325e-05/0.4347, allocations: 47.62 kB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.35e-05/0.4348, allocations: 41.7 kB / 1.174 GB, free: 14.87 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.435, allocations: 334.8 kB / 1.174 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.4351, allocations: 83.91 kB / 1.174 GB, free: 14.45 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.4354, allocations: 139 kB / 1.175 GB, free: 14.3 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003391/0.4357, allocations: 248.8 kB / 1.175 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.4357, allocations: 0 / 1.175 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005045/0.4362, allocations: 335.2 kB / 1.175 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.561e-05/0.4363, allocations: 37.7 kB / 1.175 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.4363, allocations: 4 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.4363, allocations: 96 / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.4365, allocations: 31.86 kB / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.4365, allocations: 96 / 1.175 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001164/0.4366, allocations: 27.88 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.4366, allocations: 8 kB / 1.175 GB, free: 13.58 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.0002005/0.4368, allocations: 203.4 kB / 1.175 GB, free: 13.36 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.734e-05/0.4369, allocations: 23.86 kB / 1.176 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.773e-05/0.4369, allocations: 25.83 kB / 1.176 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.437, allocations: 4 kB / 1.176 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.437, allocations: 0 / 1.176 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.437, allocations: 4 kB / 1.176 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002835/0.4373, allocations: 297.3 kB / 1.176 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.4373, allocations: 0 / 1.176 GB, free: 12.96 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/0.4374, allocations: 15.98 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.4374, allocations: 0 / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.4374, allocations: 4 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.4374, allocations: 0 / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.4374, allocations: 3.984 kB / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007681/0.4382, allocations: 470.4 kB / 1.176 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 7.193e-05/0.4383, allocations: 104.9 kB / 1.176 GB, free: 12.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.317e-05/0.4383, allocations: 15.92 kB / 1.176 GB, free: 12.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.997e-05/0.4384, allocations: 8 kB / 1.176 GB, free: 12.31 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.858e-05/0.4385, allocations: 23.95 kB / 1.176 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.494e-05/0.4386, allocations: 8 kB / 1.176 GB, free: 12.28 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001792/0.4388, allocations: 201.9 kB / 1.177 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4388, allocations: 4.062 kB / 1.177 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003036/0.4391, allocations: 55.94 kB / 1.177 GB, free: 12.03 MB / 0.9356 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.0002308/0.4393, allocations: 134.7 kB / 1.177 GB, free: 11.89 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005221/0.4398, allocations: 299.1 kB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.4399, allocations: 192 / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.4401, allocations: 183.4 kB / 1.177 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003123/0.4404, allocations: 40.81 kB / 1.177 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009994/0.4414, allocations: 481.8 kB / 1.178 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003256/0.4418, allocations: 0.7514 MB / 1.179 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 7.958e-05/0.4419, allocations: 21.53 kB / 1.179 GB, free: 10.06 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.529e-05/0.4419, allocations: 15.44 kB / 1.179 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of SimCode: time 4.41e-07/0.4419, allocations: 0 / 1.179 GB, free: 10.04 MB / 0.9356 GB Notification: Performance of Templates: time 0.006834/0.4488, allocations: 2.838 MB / 1.181 GB, free: 7.227 MB / 0.9356 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches