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.001825/0.001825, allocations: 80.41 kB / 20.23 MB, free: 4.203 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.002229/0.002229, allocations: 161.6 kB / 23.55 MB, free: 0.8945 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.558/1.558, allocations: 177.1 MB / 203.9 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 2.952/2.952, allocations: 377.8 MB / 0.6232 GB, free: 8.547 MB / 0.5886 GB " [Timeout remaining time 176] 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.773e-06/1.773e-06, allocations: 0 / 0.8108 GB, free: 2.137 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.588e-05/3.765e-05, allocations: 7.656 kB / 0.8108 GB, free: 2.129 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004501/0.004539, allocations: 1.931 MB / 0.8127 GB, free: 204 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.002021/0.00656, allocations: 0.7114 MB / 0.8134 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002011/0.006761, allocations: 0 / 0.8134 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0003412/0.007102, allocations: 84.23 kB / 0.8135 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0002242/0.007326, allocations: 94.64 kB / 0.8135 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007934/0.00812, allocations: 188.4 kB / 0.8137 GB, free: 15.13 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000508/0.008628, allocations: 259.4 kB / 0.814 GB, free: 14.88 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/0.008847, allocations: 50.94 kB / 0.814 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003461/0.009193, allocations: 155.7 kB / 0.8142 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003031/0.009496, allocations: 141.4 kB / 0.8143 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 5.706e-05/0.009553, allocations: 20 kB / 0.8143 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002258/0.009779, allocations: 83.94 kB / 0.8144 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001311/0.00991, allocations: 60.45 kB / 0.8145 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.01004, allocations: 59.84 kB / 0.8145 GB, free: 14.32 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0006924/0.01073, allocations: 335.6 kB / 0.8148 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.01074, allocations: 7.938 kB / 0.8148 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.142e-06/0.01074, allocations: 1 kB / 0.8148 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 1.103e-05/0.01075, allocations: 0 / 0.8148 GB, free: 13.98 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.001195/0.01195, allocations: 0.5094 MB / 0.8153 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.012, allocations: 8.031 kB / 0.8154 GB, free: 13.43 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.01214, allocations: 40.75 kB / 0.8154 GB, free: 13.39 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006835/0.01282, allocations: 249.9 kB / 0.8156 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.01285, allocations: 12.97 kB / 0.8156 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.737e-05/0.0129, allocations: 16.33 kB / 0.8157 GB, free: 13.1 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00057/0.01347, allocations: 306.5 kB / 0.8159 GB, free: 12.76 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.663e-05/0.01349, allocations: 192 / 0.8159 GB, free: 12.76 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.119e-05/0.01352, allocations: 8.812 kB / 0.816 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.01353, allocations: 4 kB / 0.816 GB, free: 12.75 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000348/0.01388, allocations: 159.4 kB / 0.8161 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00113/0.01501, allocations: 0.5893 MB / 0.8167 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004503/0.01546, allocations: 176.2 kB / 0.8169 GB, free: 11.77 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002407/0.0157, allocations: 123.3 kB / 0.817 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.01572, allocations: 4.031 kB / 0.817 GB, free: 11.64 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003854/0.01611, allocations: 205.5 kB / 0.8172 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.01611, allocations: 0.5312 kB / 0.8172 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0009468/0.01706, allocations: 448 kB / 0.8176 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001273/0.01718, allocations: 136.5 kB / 0.8177 GB, free: 10.79 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003859/0.01757, allocations: 266.4 kB / 0.818 GB, free: 10.53 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 4.291e-05/0.01761, allocations: 37.69 kB / 0.818 GB, free: 10.48 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.01778, allocations: 157.2 kB / 0.8182 GB, free: 10.33 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 6.14e-05/0.01784, allocations: 43.62 kB / 0.8182 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.01794, allocations: 42.64 kB / 0.8183 GB, free: 10.24 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002439/0.01819, allocations: 338.8 kB / 0.8186 GB, free: 9.898 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000231/0.01842, allocations: 118.9 kB / 0.8187 GB, free: 9.777 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003097/0.01873, allocations: 211.9 kB / 0.8189 GB, free: 9.535 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004271/0.01916, allocations: 252.2 kB / 0.8191 GB, free: 9.27 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.01916, allocations: 0 / 0.8191 GB, free: 9.27 MB / 0.7761 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000712/0.01987, allocations: 392.6 kB / 0.8195 GB, free: 8.871 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 5.388e-05/0.01992, allocations: 33.7 kB / 0.8195 GB, free: 8.832 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.01993, allocations: 0 / 0.8195 GB, free: 8.832 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.01995, allocations: 0 / 0.8195 GB, free: 8.832 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000153/0.02011, allocations: 27.98 kB / 0.8196 GB, free: 8.805 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.02011, allocations: 0 / 0.8196 GB, free: 8.805 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001484/0.02026, allocations: 27.88 kB / 0.8196 GB, free: 8.777 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.02029, allocations: 9.406 kB / 0.8196 GB, free: 8.77 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.0002476/0.02053, allocations: 191.5 kB / 0.8198 GB, free: 8.566 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.845e-05/0.0206, allocations: 32.42 kB / 0.8198 GB, free: 8.535 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.338e-05/0.02068, allocations: 33.77 kB / 0.8198 GB, free: 8.5 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.02068, allocations: 4.594 kB / 0.8199 GB, free: 8.496 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.02069, allocations: 5.828 kB / 0.8199 GB, free: 8.492 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.02069, allocations: 0 / 0.8199 GB, free: 8.492 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000396/0.02109, allocations: 205.1 kB / 0.8201 GB, free: 8.262 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.02109, allocations: 0 / 0.8201 GB, free: 8.262 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.02121, allocations: 15.98 kB / 0.8201 GB, free: 8.246 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.02121, allocations: 5.156 kB / 0.8201 GB, free: 8.242 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.253e-05/0.02123, allocations: 7.938 kB / 0.8201 GB, free: 8.234 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.02124, allocations: 0 / 0.8201 GB, free: 8.234 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.02124, allocations: 5.078 kB / 0.8201 GB, free: 8.23 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009949/0.02223, allocations: 0.5287 MB / 0.8206 GB, free: 7.668 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 4.686e-05/0.02228, allocations: 27.77 kB / 0.8206 GB, free: 7.641 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.946e-05/0.02233, allocations: 8.719 kB / 0.8206 GB, free: 7.633 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.02246, allocations: 15.89 kB / 0.8207 GB, free: 7.621 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.809e-05/0.02256, allocations: 27.95 kB / 0.8207 GB, free: 7.594 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.28e-05/0.02258, allocations: 7.938 kB / 0.8207 GB, free: 7.586 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0002206/0.0228, allocations: 193.2 kB / 0.8209 GB, free: 7.402 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.0228, allocations: 0 / 0.8209 GB, free: 7.402 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0003305/0.02313, allocations: 63.88 kB / 0.8209 GB, free: 7.34 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.0002865/0.02342, allocations: 131.2 kB / 0.8211 GB, free: 7.203 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.00063/0.02405, allocations: 323.9 kB / 0.8214 GB, free: 6.863 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.02405, allocations: 0 / 0.8214 GB, free: 6.863 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.000322/0.02437, allocations: 190 kB / 0.8215 GB, free: 6.66 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003404/0.02471, allocations: 29.61 kB / 0.8216 GB, free: 6.633 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.02579, allocations: 491.2 kB / 0.822 GB, free: 6.125 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000194/0.02598, allocations: 144.8 kB / 0.8222 GB, free: 5.965 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 9.075e-05/0.02607, allocations: 15.27 kB / 0.8222 GB, free: 5.953 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.598e-05/0.02614, allocations: 21.62 kB / 0.8222 GB, free: 5.934 MB / 0.7761 GB Notification: Performance of SimCode: time 8.21e-07/0.02614, allocations: 0 / 0.8222 GB, free: 5.934 MB / 0.7761 GB Notification: Performance of Templates: time 0.008643/0.03478, allocations: 2.901 MB / 0.825 GB, free: 3.086 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.450615206966177]