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.001002/0.001002, allocations: 83.59 kB / 20.45 MB, free: 4.117 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.001866/0.001866, allocations: 161 kB / 23.82 MB, free: 0.7422 MB / 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 1.048/1.048, allocations: 177.1 MB / 204.2 MB, free: 5.625 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.918/1.918, allocations: 377.9 MB / 0.6236 GB, free: 8.57 MB / 0.5886 GB " [Timeout remaining time 177] 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.933e-06/1.933e-06, allocations: 0 / 0.8115 GB, free: 1.777 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.978e-05/3.171e-05, allocations: 2.969 kB / 0.8115 GB, free: 1.773 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004257/0.004289, allocations: 1.987 MB / 0.8135 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001635/0.005924, allocations: 0.731 MB / 0.8142 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.006068, allocations: 0 / 0.8142 GB, free: 15.05 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0002966/0.006365, allocations: 89.16 kB / 0.8143 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.006531, allocations: 84.89 kB / 0.8143 GB, free: 14.89 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007633/0.007294, allocations: 185.2 kB / 0.8145 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0004208/0.007715, allocations: 271.3 kB / 0.8148 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.007892, allocations: 42.84 kB / 0.8148 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002509/0.008143, allocations: 152.8 kB / 0.815 GB, free: 14.25 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002596/0.008403, allocations: 139.7 kB / 0.8151 GB, free: 14.11 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 5.07e-05/0.008453, allocations: 21.16 kB / 0.8151 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001927/0.008646, allocations: 91.86 kB / 0.8152 GB, free: 14 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 7.873e-05/0.008725, allocations: 63.77 kB / 0.8153 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 6.951e-05/0.008794, allocations: 65.14 kB / 0.8153 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003001/0.009094, allocations: 227.3 kB / 0.8155 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.009099, allocations: 4 kB / 0.8155 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.032e-06/0.0091, allocations: 0 / 0.8155 GB, free: 13.65 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.009106, allocations: 5.734 kB / 0.8156 GB, free: 13.65 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.0006942/0.009801, allocations: 0.6023 MB / 0.8161 GB, free: 13 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.009838, allocations: 10.41 kB / 0.8162 GB, free: 13 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.372e-05/0.009912, allocations: 44.69 kB / 0.8162 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.01026, allocations: 247.7 kB / 0.8164 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.106e-05/0.01029, allocations: 14.31 kB / 0.8164 GB, free: 12.68 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.874e-05/0.01033, allocations: 16.38 kB / 0.8165 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003225/0.01065, allocations: 264.8 kB / 0.8167 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.01066, allocations: 192 / 0.8167 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.01068, allocations: 12.12 kB / 0.8167 GB, free: 12.34 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.01069, allocations: 8.5 kB / 0.8167 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.0108, allocations: 93.09 kB / 0.8168 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007309/0.01153, allocations: 0.7321 MB / 0.8175 GB, free: 11.46 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001713/0.0117, allocations: 107.4 kB / 0.8176 GB, free: 11.34 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.584e-05/0.01177, allocations: 69.36 kB / 0.8177 GB, free: 11.26 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.148e-05/0.01178, allocations: 4 kB / 0.8177 GB, free: 11.26 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/0.01196, allocations: 160.4 kB / 0.8179 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.774e-06/0.01196, allocations: 0 / 0.8179 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0003684/0.01233, allocations: 262.7 kB / 0.8181 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.01239, allocations: 140.5 kB / 0.8182 GB, free: 10.63 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002135/0.0126, allocations: 304.9 kB / 0.8185 GB, free: 10.32 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.01262, allocations: 33.7 kB / 0.8186 GB, free: 10.28 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.01273, allocations: 211.8 kB / 0.8188 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.114e-05/0.01276, allocations: 43.64 kB / 0.8188 GB, free: 10.02 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-05/0.01282, allocations: 48.2 kB / 0.8189 GB, free: 9.969 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.01296, allocations: 0.5079 MB / 0.8194 GB, free: 9.449 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.227e-05/0.01303, allocations: 63.56 kB / 0.8194 GB, free: 9.383 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000105/0.01314, allocations: 171.2 kB / 0.8196 GB, free: 9.172 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00013/0.01327, allocations: 156.9 kB / 0.8197 GB, free: 8.992 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.01327, allocations: 4 kB / 0.8197 GB, free: 8.988 MB / 0.7761 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002502/0.01352, allocations: 248.1 kB / 0.82 GB, free: 8.73 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/0.01356, allocations: 38.81 kB / 0.82 GB, free: 8.688 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.01357, allocations: 4 kB / 0.82 GB, free: 8.684 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.01359, allocations: 1.125 kB / 0.82 GB, free: 8.684 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.01369, allocations: 27.92 kB / 0.82 GB, free: 8.656 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.01369, allocations: 4 kB / 0.82 GB, free: 8.652 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.746e-05/0.01376, allocations: 24.84 kB / 0.8201 GB, free: 8.629 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.166e-05/0.01377, allocations: 4 kB / 0.8201 GB, free: 8.625 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.0001181/0.01389, allocations: 207.1 kB / 0.8203 GB, free: 8.406 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.366e-05/0.01393, allocations: 37.55 kB / 0.8203 GB, free: 8.371 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.701e-05/0.01396, allocations: 21.78 kB / 0.8203 GB, free: 8.348 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.01396, allocations: 0 / 0.8203 GB, free: 8.348 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.01397, allocations: 4 kB / 0.8203 GB, free: 8.344 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.01397, allocations: 3.984 kB / 0.8203 GB, free: 8.34 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001616/0.01413, allocations: 217.8 kB / 0.8205 GB, free: 8.094 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.01413, allocations: 0 / 0.8205 GB, free: 8.094 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.013e-05/0.0142, allocations: 15.98 kB / 0.8206 GB, free: 8.078 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.0142, allocations: 4.656 kB / 0.8206 GB, free: 8.074 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.01421, allocations: 8 kB / 0.8206 GB, free: 8.066 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.01422, allocations: 0.6562 kB / 0.8206 GB, free: 8.066 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01422, allocations: 0 / 0.8206 GB, free: 8.066 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000352/0.01457, allocations: 340.9 kB / 0.8209 GB, free: 7.695 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 2.418e-05/0.01459, allocations: 27.73 kB / 0.8209 GB, free: 7.668 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/0.01462, allocations: 12 kB / 0.8209 GB, free: 7.656 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.388e-05/0.01467, allocations: 4 kB / 0.8209 GB, free: 7.652 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.733e-05/0.01473, allocations: 31.94 kB / 0.821 GB, free: 7.621 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.01475, allocations: 8 kB / 0.821 GB, free: 7.613 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0001032/0.01485, allocations: 197.1 kB / 0.8212 GB, free: 7.426 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.01485, allocations: 0 / 0.8212 GB, free: 7.426 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002003/0.01505, allocations: 59.89 kB / 0.8212 GB, free: 7.367 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.0001756/0.01523, allocations: 141.1 kB / 0.8214 GB, free: 7.223 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002591/0.01549, allocations: 235.4 kB / 0.8216 GB, free: 6.969 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.01549, allocations: 0 / 0.8216 GB, free: 6.969 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001099/0.0156, allocations: 144.7 kB / 0.8217 GB, free: 6.805 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.01584, allocations: 36.47 kB / 0.8217 GB, free: 6.77 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005951/0.01643, allocations: 417.3 kB / 0.8221 GB, free: 6.332 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.097e-05/0.01649, allocations: 88.34 kB / 0.8222 GB, free: 6.227 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.59e-05/0.01654, allocations: 19.3 kB / 0.8222 GB, free: 6.211 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.18e-05/0.01658, allocations: 16.5 kB / 0.8223 GB, free: 6.195 MB / 0.7761 GB Notification: Performance of SimCode: time 1.232e-06/0.01658, allocations: 0 / 0.8223 GB, free: 6.195 MB / 0.7761 GB Notification: Performance of Templates: time 0.005227/0.02181, allocations: 2.911 MB / 0.8251 GB, free: 3.328 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: 5.3425397970713675]