Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00098/0.00098, allocations: 71.75 kB / 20.97 MB, free: 3.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009743/0.0009743, allocations: 169.3 kB / 24.28 MB, free: 284 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9419/0.9419, allocations: 177.1 MB / 204.6 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.81/1.81, allocations: 377.8 MB / 0.6239 GB, free: 8.5 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.092e-06/1.092e-06, allocations: 0 / 0.8115 GB, free: 2.047 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.503e-05/1.612e-05, allocations: 4.297 kB / 0.8115 GB, free: 2.043 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002119/0.002135, allocations: 1.991 MB / 0.8135 GB, free: 56 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0009167/0.003051, allocations: 0.7164 MB / 0.8142 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.787e-05/0.003149, allocations: 7.938 kB / 0.8142 GB, free: 15.33 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0002279/0.003377, allocations: 79.58 kB / 0.8142 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001177/0.003495, allocations: 97.06 kB / 0.8143 GB, free: 15.16 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004221/0.003917, allocations: 184.8 kB / 0.8145 GB, free: 14.98 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.004139, allocations: 256.8 kB / 0.8148 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.004255, allocations: 50.16 kB / 0.8148 GB, free: 14.68 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.004401, allocations: 159.6 kB / 0.815 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.004548, allocations: 140.8 kB / 0.8151 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.004574, allocations: 20 kB / 0.8151 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.004676, allocations: 88.81 kB / 0.8152 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 6.215e-05/0.004738, allocations: 55.83 kB / 0.8152 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 6.213e-05/0.0048, allocations: 67.77 kB / 0.8153 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002425/0.005042, allocations: 236.1 kB / 0.8155 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.005045, allocations: 4 kB / 0.8155 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.11e-07/0.005046, allocations: 1.031 kB / 0.8155 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.00505, allocations: 0 / 0.8155 GB, free: 13.92 MB / 0.7761 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.0005799/0.005629, allocations: 0.6077 MB / 0.8161 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.00566, allocations: 8.031 kB / 0.8161 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.329e-05/0.005723, allocations: 42.69 kB / 0.8162 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.006004, allocations: 243.7 kB / 0.8164 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.006027, allocations: 12.36 kB / 0.8164 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.654e-05/0.006053, allocations: 17.97 kB / 0.8164 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002606/0.006314, allocations: 272.8 kB / 0.8167 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.006322, allocations: 192 / 0.8167 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.006337, allocations: 9.125 kB / 0.8167 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.006345, allocations: 4 kB / 0.8167 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001064/0.006451, allocations: 91.77 kB / 0.8168 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005545/0.007006, allocations: 0.7219 MB / 0.8175 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/0.007149, allocations: 117.4 kB / 0.8176 GB, free: 11.62 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.248e-05/0.007211, allocations: 70.36 kB / 0.8177 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 9.178e-06/0.007221, allocations: 0 / 0.8177 GB, free: 11.54 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000147/0.007368, allocations: 157.2 kB / 0.8178 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.243e-06/0.007369, allocations: 0 / 0.8178 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0003074/0.007676, allocations: 266.1 kB / 0.8181 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.007728, allocations: 144.4 kB / 0.8182 GB, free: 10.91 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001767/0.007904, allocations: 304.3 kB / 0.8185 GB, free: 10.59 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.007922, allocations: 29.7 kB / 0.8185 GB, free: 10.56 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.035e-05/0.008012, allocations: 204 kB / 0.8187 GB, free: 10.36 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.045e-05/0.008043, allocations: 51.62 kB / 0.8188 GB, free: 10.3 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.167e-05/0.008094, allocations: 48.27 kB / 0.8188 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.008215, allocations: 0.5079 MB / 0.8193 GB, free: 9.73 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.04e-05/0.008276, allocations: 59.22 kB / 0.8194 GB, free: 9.668 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.637e-05/0.008372, allocations: 183.1 kB / 0.8196 GB, free: 9.445 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001178/0.00849, allocations: 157.6 kB / 0.8197 GB, free: 9.266 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.008493, allocations: 7.938 kB / 0.8197 GB, free: 9.258 MB / 0.7761 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002158/0.008709, allocations: 247.9 kB / 0.82 GB, free: 9 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.008736, allocations: 37.7 kB / 0.82 GB, free: 8.957 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.00874, allocations: 0 / 0.82 GB, free: 8.957 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.008751, allocations: 0 / 0.82 GB, free: 8.957 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.141e-05/0.008832, allocations: 27.92 kB / 0.82 GB, free: 8.93 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.05e-06/0.008837, allocations: 0 / 0.82 GB, free: 8.93 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.082e-05/0.008898, allocations: 24.38 kB / 0.82 GB, free: 8.906 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.00891, allocations: 8 kB / 0.8201 GB, free: 8.898 MB / 0.7761 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.0001002/0.00901, allocations: 205.8 kB / 0.8202 GB, free: 8.684 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.982e-05/0.00904, allocations: 32.95 kB / 0.8203 GB, free: 8.652 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3e-05/0.00907, allocations: 25.77 kB / 0.8203 GB, free: 8.625 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.009073, allocations: 4 kB / 0.8203 GB, free: 8.621 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.009076, allocations: 0.5 kB / 0.8203 GB, free: 8.621 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.009078, allocations: 5.094 kB / 0.8203 GB, free: 8.617 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000148/0.009226, allocations: 220.4 kB / 0.8205 GB, free: 8.367 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.009228, allocations: 0 / 0.8205 GB, free: 8.367 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.142e-05/0.009279, allocations: 9.031 kB / 0.8205 GB, free: 8.359 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.009283, allocations: 7.938 kB / 0.8205 GB, free: 8.352 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.009297, allocations: 7.969 kB / 0.8205 GB, free: 8.344 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.009299, allocations: 5.344 kB / 0.8206 GB, free: 8.34 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.0093, allocations: 3.938 kB / 0.8206 GB, free: 8.336 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003102/0.00961, allocations: 333.3 kB / 0.8209 GB, free: 7.969 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.062e-05/0.009631, allocations: 28.83 kB / 0.8209 GB, free: 7.941 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.009658, allocations: 8 kB / 0.8209 GB, free: 7.934 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.598e-05/0.009704, allocations: 12.64 kB / 0.8209 GB, free: 7.922 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.083e-05/0.009764, allocations: 23.95 kB / 0.8209 GB, free: 7.898 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.009779, allocations: 10.5 kB / 0.821 GB, free: 7.891 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.794e-05/0.009877, allocations: 201.1 kB / 0.8211 GB, free: 7.699 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5.1e-08/0.009877, allocations: 0 / 0.8211 GB, free: 7.699 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001772/0.01005, allocations: 59.88 kB / 0.8212 GB, free: 7.641 MB / 0.7761 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.000138/0.01019, allocations: 136.2 kB / 0.8213 GB, free: 7.504 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002179/0.01041, allocations: 234 kB / 0.8216 GB, free: 7.25 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01041, allocations: 0 / 0.8216 GB, free: 7.25 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 9.383e-05/0.01051, allocations: 148.7 kB / 0.8217 GB, free: 7.082 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001906/0.0107, allocations: 37.39 kB / 0.8217 GB, free: 7.047 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004738/0.01117, allocations: 416.7 kB / 0.8221 GB, free: 6.609 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.514e-05/0.01122, allocations: 84.88 kB / 0.8222 GB, free: 6.508 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.145e-05/0.01127, allocations: 21.67 kB / 0.8222 GB, free: 6.492 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.646e-05/0.0113, allocations: 20.5 kB / 0.8223 GB, free: 6.473 MB / 0.7761 GB Notification: Performance of SimCode: time 4e-07/0.0113, allocations: 0 / 0.8223 GB, free: 6.473 MB / 0.7761 GB Notification: Performance of Templates: time 0.004345/0.01565, allocations: 2.913 MB / 0.8251 GB, free: 3.609 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.928950482979417]