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.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.001595/0.001595, allocations: 79.19 kB / 19.76 MB, free: 1.875 MB / 14.72 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.001824/0.001824, allocations: 163.2 kB / 23.01 MB, free: 4.598 MB / 14.72 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.509/1.509, allocations: 177.2 MB / 203.4 MB, free: 8.875 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.857/2.857, allocations: 394.2 MB / 0.6386 GB, free: 11.92 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003326/0.003326, allocations: 68.17 kB / 1.009 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8644/0.8677, allocations: 181.8 MB / 1.187 GB, free: 16.19 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00269/0.8704, allocations: 1.926 MB / 1.188 GB, free: 14.89 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001075/0.8715, allocations: 0.7026 MB / 1.189 GB, free: 14.42 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.639e-05/0.8716, allocations: 10.53 kB / 1.189 GB, free: 14.41 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0002275/0.8718, allocations: 77.5 kB / 1.189 GB, free: 14.4 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.872, allocations: 94.16 kB / 1.189 GB, free: 14.37 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005114/0.8725, allocations: 191.2 kB / 1.19 GB, free: 14.27 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002755/0.8727, allocations: 258.3 kB / 1.19 GB, free: 14.16 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000129/0.8729, allocations: 48.88 kB / 1.19 GB, free: 14.12 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001373/0.873, allocations: 124 kB / 1.19 GB, free: 14.07 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.8732, allocations: 147.5 kB / 1.19 GB, free: 14.03 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 3.925e-05/0.8732, allocations: 20.59 kB / 1.19 GB, free: 14.03 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001501/0.8734, allocations: 86.66 kB / 1.19 GB, free: 14.02 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 7.327e-05/0.8735, allocations: 68.41 kB / 1.19 GB, free: 13.97 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 8.146e-05/0.8736, allocations: 79.55 kB / 1.19 GB, free: 13.92 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0003671/0.8739, allocations: 310.2 kB / 1.191 GB, free: 13.8 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.8739, allocations: 3.938 kB / 1.191 GB, free: 13.79 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.192e-06/0.8739, allocations: 1.5 kB / 1.191 GB, free: 13.79 MB / 1.076 GB Notification: Performance of Transformations before backend: time 6.061e-06/0.8739, allocations: 0 / 1.191 GB, free: 13.79 MB / 1.076 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.0007057/0.8746, allocations: 0.5077 MB / 1.191 GB, free: 13.37 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.8747, allocations: 9.938 kB / 1.191 GB, free: 13.37 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.09e-05/0.8747, allocations: 30.7 kB / 1.191 GB, free: 13.36 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004236/0.8752, allocations: 253.6 kB / 1.191 GB, free: 13.16 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.252e-05/0.8752, allocations: 14.94 kB / 1.191 GB, free: 13.15 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.287e-05/0.8752, allocations: 14.98 kB / 1.191 GB, free: 13.14 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003683/0.8756, allocations: 310.9 kB / 1.192 GB, free: 12.92 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.8756, allocations: 3.938 kB / 1.192 GB, free: 12.91 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.846e-05/0.8756, allocations: 6.156 kB / 1.192 GB, free: 12.91 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.8756, allocations: 3.312 kB / 1.192 GB, free: 12.91 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002478/0.8759, allocations: 160.5 kB / 1.192 GB, free: 12.84 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006575/0.8765, allocations: 0.5805 MB / 1.192 GB, free: 12.36 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003474/0.8769, allocations: 178.9 kB / 1.193 GB, free: 12.27 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.877, allocations: 119 kB / 1.193 GB, free: 12.21 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.609e-05/0.877, allocations: 1.719 kB / 1.193 GB, free: 12.21 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002555/0.8773, allocations: 212.9 kB / 1.193 GB, free: 12.06 MB / 1.076 GB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.8773, allocations: 4 kB / 1.193 GB, free: 12.06 MB / 1.076 GB Notification: Performance of matching and sorting (n=15): time 0.0006857/0.878, allocations: 436.1 kB / 1.193 GB, free: 11.85 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.878, allocations: 138.1 kB / 1.193 GB, free: 11.69 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.8783, allocations: 266.7 kB / 1.194 GB, free: 11.54 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.8783, allocations: 32.7 kB / 1.194 GB, free: 11.51 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 8.206e-05/0.8784, allocations: 159.4 kB / 1.194 GB, free: 11.37 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 3.402e-05/0.8784, allocations: 42.22 kB / 1.194 GB, free: 11.34 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.499e-05/0.8785, allocations: 44.75 kB / 1.194 GB, free: 11.31 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 5.994e-05/0.8785, allocations: 338.1 kB / 1.194 GB, free: 10.98 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001763/0.8787, allocations: 119.4 kB / 1.194 GB, free: 10.93 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.8789, allocations: 226.4 kB / 1.195 GB, free: 10.75 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003064/0.8792, allocations: 238.7 kB / 1.195 GB, free: 10.61 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.8792, allocations: 1.125 kB / 1.195 GB, free: 10.61 MB / 1.076 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004927/0.8797, allocations: 383.6 kB / 1.195 GB, free: 10.42 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/0.8797, allocations: 40.75 kB / 1.195 GB, free: 10.38 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.8797, allocations: 5.828 kB / 1.195 GB, free: 10.38 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.8798, allocations: 1.219 kB / 1.195 GB, free: 10.38 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.8799, allocations: 22.2 kB / 1.195 GB, free: 10.38 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.8799, allocations: 1.125 kB / 1.195 GB, free: 10.38 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.88, allocations: 26.8 kB / 1.195 GB, free: 10.37 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.777e-05/0.88, allocations: 5.719 kB / 1.195 GB, free: 10.37 MB / 1.076 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.0001459/0.8802, allocations: 200.3 kB / 1.196 GB, free: 10.2 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.926e-05/0.8802, allocations: 25.55 kB / 1.196 GB, free: 10.18 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.35e-05/0.8803, allocations: 29.62 kB / 1.196 GB, free: 10.16 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.8803, allocations: 1.219 kB / 1.196 GB, free: 10.16 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.8803, allocations: 5.219 kB / 1.196 GB, free: 10.16 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.8803, allocations: 0.7031 kB / 1.196 GB, free: 10.16 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000194/0.8805, allocations: 203.6 kB / 1.196 GB, free: 10 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.8805, allocations: 0 / 1.196 GB, free: 10 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.8806, allocations: 18.95 kB / 1.196 GB, free: 9.996 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.8806, allocations: 5.297 kB / 1.196 GB, free: 9.992 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.8806, allocations: 8.703 kB / 1.196 GB, free: 9.988 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.8806, allocations: 0 / 1.196 GB, free: 9.988 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.8806, allocations: 1.125 kB / 1.196 GB, free: 9.988 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007302/0.8813, allocations: 0.5281 MB / 1.196 GB, free: 9.707 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 3.064e-05/0.8814, allocations: 18.59 kB / 1.196 GB, free: 9.695 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.389e-05/0.8814, allocations: 9.531 kB / 1.196 GB, free: 9.691 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.8815, allocations: 19.3 kB / 1.196 GB, free: 9.684 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.401e-05/0.8816, allocations: 24.66 kB / 1.196 GB, free: 9.68 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.8816, allocations: 5.719 kB / 1.196 GB, free: 9.68 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.0001618/0.8818, allocations: 196.8 kB / 1.197 GB, free: 9.566 MB / 1.076 GB Notification: Performance of sort global known variables: time 5e-08/0.8818, allocations: 0 / 1.197 GB, free: 9.566 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0003092/0.8821, allocations: 63.73 kB / 1.197 GB, free: 9.551 MB / 1.076 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.0001593/0.8823, allocations: 127.8 kB / 1.197 GB, free: 9.457 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.00048/0.8827, allocations: 331.6 kB / 1.197 GB, free: 9.266 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.8827, allocations: 1.125 kB / 1.197 GB, free: 9.266 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0002156/0.883, allocations: 190.7 kB / 1.197 GB, free: 9.141 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.8833, allocations: 31.22 kB / 1.197 GB, free: 9.129 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007458/0.884, allocations: 491.5 kB / 1.198 GB, free: 8.816 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001286/0.8841, allocations: 143 kB / 1.198 GB, free: 8.738 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 7.307e-05/0.8842, allocations: 18.91 kB / 1.198 GB, free: 8.734 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.265e-05/0.8842, allocations: 18.64 kB / 1.198 GB, free: 8.727 MB / 1.076 GB Notification: Performance of SimCode: time 3.31e-07/0.8842, allocations: 0 / 1.198 GB, free: 8.727 MB / 1.076 GB Notification: Performance of Templates: time 0.007278/0.8915, allocations: 2.896 MB / 1.201 GB, free: 8.395 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile [Timeout 300] (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=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.9515265179798]