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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.342/2.342, allocations: 393.5 MB / 408.4 MB, free: 10.96 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002077/0.002077, allocations: 171.5 kB / 0.4902 GB, free: 2.246 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.778/1.778, allocations: 223.2 MB / 0.7992 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 105.5 kB / 0.9396 GB, free: 2.855 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0005334/0.0005337, allocations: 8.844 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.407/0.4076, allocations: 143 MB / 1.229 GB, free: 85.5 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2431/0.6507, allocations: 153.2 MB / 1.379 GB, free: 12.14 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/0.6511, allocations: 87.94 kB / 1.379 GB, free: 12.05 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01889/0.67, allocations: 5.897 MB / 1.385 GB, free: 6.141 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.875e-06/0.6701, allocations: 4 kB / 1.385 GB, free: 6.137 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.707e-05/0.6701, allocations: 8 kB / 1.385 GB, free: 6.129 MB / 0.8855 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.001509/0.6716, allocations: 0.5896 MB / 1.385 GB, free: 5.484 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 7.114e-05/0.6717, allocations: 8.562 kB / 1.385 GB, free: 5.477 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000226/0.672, allocations: 43.58 kB / 1.385 GB, free: 5.434 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006807/0.6727, allocations: 277.7 kB / 1.386 GB, free: 5.125 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.523e-05/0.6727, allocations: 12 kB / 1.386 GB, free: 5.113 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.313e-05/0.6728, allocations: 15.94 kB / 1.386 GB, free: 5.098 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006264/0.6735, allocations: 267.1 kB / 1.386 GB, free: 4.809 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.6735, allocations: 0 / 1.386 GB, free: 4.809 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.731e-05/0.6735, allocations: 8 kB / 1.386 GB, free: 4.801 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.6736, allocations: 8 kB / 1.386 GB, free: 4.793 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004057/0.674, allocations: 152.4 kB / 1.386 GB, free: 4.645 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001355/0.6753, allocations: 0.7393 MB / 1.387 GB, free: 3.848 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006096/0.676, allocations: 222.7 kB / 1.387 GB, free: 3.621 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.676, allocations: 3.938 kB / 1.387 GB, free: 3.617 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004746/0.6765, allocations: 204.9 kB / 1.387 GB, free: 3.398 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=15): time 2.625e-06/0.6765, allocations: 4 kB / 1.387 GB, free: 3.395 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15): time 0.001279/0.6778, allocations: 0.5551 MB / 1.388 GB, free: 2.812 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/0.678, allocations: 136.5 kB / 1.388 GB, free: 2.648 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004265/0.6784, allocations: 249.8 kB / 1.388 GB, free: 2.398 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.434e-05/0.6785, allocations: 33.8 kB / 1.388 GB, free: 2.359 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002012/0.6787, allocations: 156.2 kB / 1.388 GB, free: 2.203 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 8.671e-05/0.6788, allocations: 47.36 kB / 1.388 GB, free: 2.156 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.407e-05/0.6788, allocations: 0 / 1.388 GB, free: 2.156 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0002504/0.6791, allocations: 342.8 kB / 1.389 GB, free: 1.812 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002918/0.6794, allocations: 120.1 kB / 1.389 GB, free: 1.691 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003071/0.6797, allocations: 158.7 kB / 1.389 GB, free: 1.52 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003487/0.68, allocations: 142.4 kB / 1.389 GB, free: 1.375 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.6801, allocations: 4 kB / 1.389 GB, free: 1.371 MB / 0.8855 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0008309/0.6809, allocations: 411.6 kB / 1.389 GB, free: 0.957 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 7.837e-05/0.681, allocations: 37.69 kB / 1.389 GB, free: 0.9141 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.681, allocations: 0 / 1.389 GB, free: 0.9141 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.695e-05/0.681, allocations: 4 kB / 1.389 GB, free: 0.9102 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.6812, allocations: 32.02 kB / 1.389 GB, free: 0.8789 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.6812, allocations: 7.938 kB / 1.389 GB, free: 0.8711 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002136/0.6815, allocations: 43.81 kB / 1.389 GB, free: 0.8281 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.562e-05/0.6815, allocations: 8 kB / 1.389 GB, free: 0.8203 MB / 0.8855 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002669/0.6818, allocations: 193.6 kB / 1.39 GB, free: 0.6172 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.664e-05/0.6818, allocations: 27.67 kB / 1.39 GB, free: 0.5898 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.974e-05/0.6819, allocations: 33.83 kB / 1.39 GB, free: 0.5547 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.6819, allocations: 0 / 1.39 GB, free: 0.5547 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.682, allocations: 0 / 1.39 GB, free: 0.5547 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.682, allocations: 0 / 1.39 GB, free: 0.5547 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004129/0.6824, allocations: 309.3 kB / 1.39 GB, free: 208 kB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.6824, allocations: 0 / 1.39 GB, free: 208 kB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001529/0.6826, allocations: 35.86 kB / 1.39 GB, free: 172 kB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.6826, allocations: 0 / 1.39 GB, free: 172 kB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.6826, allocations: 8 kB / 1.39 GB, free: 164 kB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.6826, allocations: 4 kB / 1.39 GB, free: 160 kB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.6826, allocations: 0 / 1.39 GB, free: 160 kB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.6838, allocations: 0.5706 MB / 1.391 GB, free: 15.56 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.684, allocations: 100.8 kB / 1.391 GB, free: 15.45 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.83e-05/0.684, allocations: 15.95 kB / 1.391 GB, free: 15.43 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001636/0.6842, allocations: 39.97 kB / 1.391 GB, free: 15.39 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001102/0.6843, allocations: 27.95 kB / 1.391 GB, free: 15.36 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.318e-05/0.6844, allocations: 11.98 kB / 1.391 GB, free: 15.35 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002324/0.6846, allocations: 202 kB / 1.391 GB, free: 15.15 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6846, allocations: 0 / 1.391 GB, free: 15.15 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003829/0.685, allocations: 64.06 kB / 1.391 GB, free: 15.09 MB / 0.9011 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 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003305/0.6853, allocations: 140 kB / 1.391 GB, free: 14.95 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0006751/0.686, allocations: 318 kB / 1.392 GB, free: 14.62 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.686, allocations: 3.938 kB / 1.392 GB, free: 14.62 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0003096/0.6864, allocations: 199.3 kB / 1.392 GB, free: 14.41 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.6867, allocations: 32.55 kB / 1.392 GB, free: 14.38 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.688, allocations: 0.5108 MB / 1.392 GB, free: 13.85 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004642/0.6885, allocations: 0.7596 MB / 1.393 GB, free: 13.06 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001078/0.6886, allocations: 17.42 kB / 1.393 GB, free: 13.04 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.971e-05/0.6887, allocations: 19.44 kB / 1.393 GB, free: 13.02 MB / 0.9011 GB Notification: Performance of SimCode: time 2.1e-07/0.6887, allocations: 0 / 1.393 GB, free: 13.02 MB / 0.9011 GB Notification: Performance of Templates: time 0.006915/0.6956, allocations: 2.519 MB / 1.395 GB, free: 10.53 MB / 0.9011 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","../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches