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.001215/0.001215, allocations: 87.58 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.0009762/0.0009762, allocations: 161 kB / 23.82 MB, free: 0.75 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 0.893/0.893, allocations: 177.1 MB / 204.2 MB, free: 5.594 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.819/1.819, allocations: 377.9 MB / 0.6236 GB, free: 8.496 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.523e-06/1.523e-06, allocations: 0 / 0.8115 GB, free: 1.711 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.643e-05/1.795e-05, allocations: 3.312 kB / 0.8115 GB, free: 1.707 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002324/0.002342, allocations: 1.993 MB / 0.8135 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.001007/0.003348, allocations: 0.7275 MB / 0.8142 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.905e-05/0.003447, allocations: 3.938 kB / 0.8142 GB, free: 14.99 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.003674, allocations: 83.64 kB / 0.8143 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.003774, allocations: 93.25 kB / 0.8144 GB, free: 14.82 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005256/0.0043, allocations: 181.2 kB / 0.8145 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002958/0.004595, allocations: 272.2 kB / 0.8148 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.004738, allocations: 46.16 kB / 0.8148 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.004906, allocations: 156.9 kB / 0.815 GB, free: 14.18 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.005065, allocations: 135.7 kB / 0.8151 GB, free: 14.04 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.005096, allocations: 21.88 kB / 0.8151 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.005208, allocations: 83.88 kB / 0.8152 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 7.324e-05/0.005281, allocations: 59.77 kB / 0.8153 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 6.476e-05/0.005346, allocations: 59.83 kB / 0.8153 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002614/0.005607, allocations: 231.2 kB / 0.8156 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.005609, allocations: 1.094 kB / 0.8156 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.233e-06/0.005611, allocations: 0 / 0.8156 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.058e-06/0.005615, allocations: 0 / 0.8156 GB, free: 13.6 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.0005938/0.006209, allocations: 0.596 MB / 0.8161 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.006249, allocations: 8.031 kB / 0.8161 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.137e-05/0.00632, allocations: 44.75 kB / 0.8162 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002375/0.006558, allocations: 229.3 kB / 0.8164 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.006586, allocations: 12.38 kB / 0.8164 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.357e-05/0.006619, allocations: 17.19 kB / 0.8164 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003095/0.006929, allocations: 268.8 kB / 0.8167 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.006939, allocations: 1.969 kB / 0.8167 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.006956, allocations: 4.375 kB / 0.8167 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.006965, allocations: 7.938 kB / 0.8167 GB, free: 12.31 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000115/0.00708, allocations: 90.06 kB / 0.8168 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006034/0.007684, allocations: 0.7255 MB / 0.8175 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.007837, allocations: 114.5 kB / 0.8176 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.881e-05/0.007906, allocations: 73.5 kB / 0.8177 GB, free: 11.24 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.041e-05/0.007916, allocations: 4 kB / 0.8177 GB, free: 11.23 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000149/0.008065, allocations: 153 kB / 0.8178 GB, free: 11.06 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.322e-06/0.008067, allocations: 1.25 kB / 0.8178 GB, free: 11.06 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0004791/0.008546, allocations: 266.5 kB / 0.8181 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.008596, allocations: 136.5 kB / 0.8182 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/0.008779, allocations: 309.3 kB / 0.8185 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.008797, allocations: 33.7 kB / 0.8185 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 9.669e-05/0.008894, allocations: 211.1 kB / 0.8187 GB, free: 10.04 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.606e-05/0.00892, allocations: 40.53 kB / 0.8188 GB, free: 10 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.359e-05/0.008973, allocations: 47.36 kB / 0.8188 GB, free: 9.949 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001236/0.009097, allocations: 0.5096 MB / 0.8193 GB, free: 9.43 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.772e-05/0.009165, allocations: 65.67 kB / 0.8194 GB, free: 9.359 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.833e-05/0.009263, allocations: 175.2 kB / 0.8195 GB, free: 9.145 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/0.009384, allocations: 157.8 kB / 0.8197 GB, free: 8.965 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.009386, allocations: 0 / 0.8197 GB, free: 8.965 MB / 0.7761 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002232/0.009609, allocations: 249.6 kB / 0.8199 GB, free: 8.703 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.006e-05/0.009639, allocations: 35.7 kB / 0.82 GB, free: 8.664 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.009644, allocations: 3.984 kB / 0.82 GB, free: 8.66 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.009659, allocations: 4 kB / 0.82 GB, free: 8.656 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.058e-05/0.009739, allocations: 19.94 kB / 0.82 GB, free: 8.637 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.009746, allocations: 3.984 kB / 0.82 GB, free: 8.633 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.039e-05/0.009806, allocations: 24.66 kB / 0.82 GB, free: 8.609 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.009818, allocations: 7.438 kB / 0.82 GB, free: 8.605 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.0001067/0.009924, allocations: 212.8 kB / 0.8202 GB, free: 8.383 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.009954, allocations: 31.8 kB / 0.8203 GB, free: 8.352 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.373e-05/0.009987, allocations: 29.77 kB / 0.8203 GB, free: 8.32 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.009989, allocations: 0 / 0.8203 GB, free: 8.32 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.009993, allocations: 7.938 kB / 0.8203 GB, free: 8.312 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.009996, allocations: 0 / 0.8203 GB, free: 8.312 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001532/0.01015, allocations: 220.5 kB / 0.8205 GB, free: 8.062 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.01015, allocations: 0.5938 kB / 0.8205 GB, free: 8.062 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.69e-05/0.01021, allocations: 16.52 kB / 0.8205 GB, free: 8.047 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.01021, allocations: 3.938 kB / 0.8205 GB, free: 8.043 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.01022, allocations: 9.484 kB / 0.8205 GB, free: 8.035 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.21e-07/0.01023, allocations: 0 / 0.8205 GB, free: 8.035 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01023, allocations: 0 / 0.8205 GB, free: 8.035 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003139/0.01054, allocations: 343.3 kB / 0.8209 GB, free: 7.66 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.867e-05/0.01056, allocations: 16.67 kB / 0.8209 GB, free: 7.645 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.01059, allocations: 11.94 kB / 0.8209 GB, free: 7.633 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.317e-05/0.01063, allocations: 12.92 kB / 0.8209 GB, free: 7.621 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.371e-05/0.01069, allocations: 23.95 kB / 0.8209 GB, free: 7.598 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.01071, allocations: 8 kB / 0.8209 GB, free: 7.59 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 9.77e-05/0.0108, allocations: 206.8 kB / 0.8211 GB, free: 7.395 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5.1e-08/0.0108, allocations: 0 / 0.8211 GB, free: 7.395 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001858/0.01099, allocations: 59.89 kB / 0.8212 GB, free: 7.336 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.0001703/0.01116, allocations: 144.9 kB / 0.8213 GB, free: 7.191 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002417/0.0114, allocations: 226.4 kB / 0.8215 GB, free: 6.941 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.0114, allocations: 0 / 0.8215 GB, free: 6.941 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 9.426e-05/0.0115, allocations: 144.7 kB / 0.8217 GB, free: 6.777 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001964/0.01169, allocations: 37.41 kB / 0.8217 GB, free: 6.742 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000499/0.01219, allocations: 415.5 kB / 0.8221 GB, free: 6.309 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.573e-05/0.01224, allocations: 84.94 kB / 0.8222 GB, free: 6.207 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.044e-05/0.01229, allocations: 17.33 kB / 0.8222 GB, free: 6.195 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.783e-05/0.01233, allocations: 24.48 kB / 0.8222 GB, free: 6.172 MB / 0.7761 GB Notification: Performance of SimCode: time 6.42e-07/0.01233, allocations: 4 kB / 0.8222 GB, free: 6.168 MB / 0.7761 GB Notification: Performance of Templates: time 0.005211/0.01754, allocations: 3.072 MB / 0.8252 GB, free: 3.152 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.747291203122586]