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.001266/0.001266, allocations: 80.8 kB / 20.75 MB, free: 3.742 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.001533/0.001533, allocations: 161 kB / 24.16 MB, free: 336 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.9754/0.9754, allocations: 177.2 MB / 204.6 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.821/1.821, allocations: 377.9 MB / 0.624 GB, free: 8.344 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.202e-06/1.202e-06, allocations: 0 / 0.76 GB, free: 6.625 MB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.001e-05/1.121e-05, allocations: 2.312 kB / 0.76 GB, free: 6.621 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002149/0.002161, allocations: 1.991 MB / 0.7619 GB, free: 4.645 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.001011/0.003171, allocations: 0.7325 MB / 0.7627 GB, free: 3.914 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.61e-05/0.003258, allocations: 4 kB / 0.7627 GB, free: 3.91 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 0.0001913/0.003449, allocations: 82 kB / 0.7627 GB, free: 3.832 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.003555, allocations: 102.2 kB / 0.7628 GB, free: 3.742 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004114/0.003966, allocations: 181.2 kB / 0.763 GB, free: 3.566 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.000235/0.004201, allocations: 259.4 kB / 0.7633 GB, free: 3.312 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.004311, allocations: 58.73 kB / 0.7633 GB, free: 3.254 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001478/0.004459, allocations: 168.3 kB / 0.7635 GB, free: 3.09 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001354/0.004594, allocations: 116.8 kB / 0.7636 GB, free: 2.977 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.004619, allocations: 20 kB / 0.7636 GB, free: 2.957 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.00472, allocations: 85.17 kB / 0.7637 GB, free: 2.875 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 6.014e-05/0.00478, allocations: 55.83 kB / 0.7637 GB, free: 2.82 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 5.11e-05/0.004831, allocations: 59.78 kB / 0.7638 GB, free: 2.762 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002541/0.005085, allocations: 232.2 kB / 0.764 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 1.663e-06/0.005087, allocations: 0 / 0.764 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of FrontEnd: time 5.81e-07/0.005088, allocations: 0 / 0.764 GB, free: 2.535 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 4.067e-06/0.005092, allocations: 0.5625 kB / 0.764 GB, free: 2.535 MB / 0.7136 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.0004671/0.005559, allocations: 482.8 kB / 0.7645 GB, free: 2.035 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 2.594e-05/0.005585, allocations: 8.031 kB / 0.7645 GB, free: 2.027 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.501e-05/0.00563, allocations: 32.91 kB / 0.7645 GB, free: 1.996 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.005825, allocations: 206 kB / 0.7647 GB, free: 1.77 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/0.005844, allocations: 12.38 kB / 0.7647 GB, free: 1.758 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.005869, allocations: 17.12 kB / 0.7647 GB, free: 1.742 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.006083, allocations: 252.3 kB / 0.765 GB, free: 1.449 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.006091, allocations: 0.8438 kB / 0.765 GB, free: 1.449 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.006103, allocations: 5.125 kB / 0.765 GB, free: 1.445 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.00611, allocations: 7.938 kB / 0.765 GB, free: 1.438 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.01e-05/0.006181, allocations: 69.86 kB / 0.7651 GB, free: 1.363 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003978/0.006578, allocations: 461 kB / 0.7655 GB, free: 0.8906 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.006698, allocations: 132.7 kB / 0.7656 GB, free: 0.7461 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.324e-05/0.006741, allocations: 59.7 kB / 0.7657 GB, free: 0.6797 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 8.827e-06/0.00675, allocations: 4 kB / 0.7657 GB, free: 0.6758 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001141/0.006864, allocations: 149.6 kB / 0.7658 GB, free: 0.5039 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=15): time 1.031e-06/0.006865, allocations: 1.031 kB / 0.7658 GB, free: 0.5039 MB / 0.7136 GB Notification: Performance of matching and sorting (n=15): time 0.00019/0.007055, allocations: 206.7 kB / 0.766 GB, free: 284 kB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.007104, allocations: 141.4 kB / 0.7662 GB, free: 112 kB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.007233, allocations: 225 kB / 0.7664 GB, free: 15.88 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.00725, allocations: 30.64 kB / 0.7664 GB, free: 15.85 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.861e-05/0.007309, allocations: 132.9 kB / 0.7665 GB, free: 15.71 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/0.007336, allocations: 55.5 kB / 0.7666 GB, free: 15.66 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.306e-05/0.007379, allocations: 44.44 kB / 0.7666 GB, free: 15.61 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.061e-05/0.00746, allocations: 334.8 kB / 0.767 GB, free: 15.28 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.939e-05/0.007499, allocations: 52.52 kB / 0.767 GB, free: 15.22 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.054e-05/0.00757, allocations: 146.2 kB / 0.7671 GB, free: 15.04 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.18e-05/0.007662, allocations: 149.8 kB / 0.7673 GB, free: 14.87 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.007663, allocations: 0 / 0.7673 GB, free: 14.87 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001286/0.007792, allocations: 182 kB / 0.7675 GB, free: 14.68 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.007818, allocations: 41.62 kB / 0.7675 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.347e-06/0.007821, allocations: 0 / 0.7675 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.007834, allocations: 1.281 kB / 0.7675 GB, free: 14.63 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.485e-05/0.007898, allocations: 23.98 kB / 0.7675 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-06/0.007901, allocations: 0 / 0.7675 GB, free: 14.61 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.358e-05/0.007955, allocations: 16.48 kB / 0.7675 GB, free: 14.59 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.247e-06/0.007964, allocations: 4 kB / 0.7675 GB, free: 14.59 MB / 0.7292 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 9.121e-05/0.008055, allocations: 173 kB / 0.7677 GB, free: 14.4 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.393e-05/0.008079, allocations: 26.19 kB / 0.7677 GB, free: 14.38 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.994e-05/0.008109, allocations: 29.72 kB / 0.7678 GB, free: 14.35 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.008112, allocations: 3.984 kB / 0.7678 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.008113, allocations: 0 / 0.7678 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.008117, allocations: 4 kB / 0.7678 GB, free: 14.34 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.008219, allocations: 129.8 kB / 0.7679 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.00822, allocations: 2.438 kB / 0.7679 GB, free: 14.2 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.37e-05/0.008263, allocations: 19.92 kB / 0.7679 GB, free: 14.18 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.008265, allocations: 0 / 0.7679 GB, free: 14.18 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.799e-06/0.008274, allocations: 4 kB / 0.7679 GB, free: 14.17 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.008275, allocations: 0 / 0.7679 GB, free: 14.17 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.008277, allocations: 3.938 kB / 0.7679 GB, free: 14.17 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002055/0.008482, allocations: 276 kB / 0.7682 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 1.715e-05/0.0085, allocations: 15.86 kB / 0.7682 GB, free: 13.85 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.008522, allocations: 8 kB / 0.7682 GB, free: 13.84 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.992e-05/0.008562, allocations: 15.92 kB / 0.7682 GB, free: 13.82 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.907e-05/0.008611, allocations: 35.83 kB / 0.7683 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.008623, allocations: 5.531 kB / 0.7683 GB, free: 13.79 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 5.412e-05/0.008677, allocations: 74.77 kB / 0.7683 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of sort global known variables: time 4.1e-08/0.008677, allocations: 0 / 0.7683 GB, free: 13.71 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0001505/0.008828, allocations: 59.89 kB / 0.7684 GB, free: 13.65 MB / 0.7292 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.0001274/0.008955, allocations: 122.4 kB / 0.7685 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001639/0.009119, allocations: 207.5 kB / 0.7687 GB, free: 13.3 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.009122, allocations: 0 / 0.7687 GB, free: 13.3 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 7.5e-05/0.009197, allocations: 144.3 kB / 0.7688 GB, free: 13.14 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.009315, allocations: 28.48 kB / 0.7689 GB, free: 13.11 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004186/0.009734, allocations: 420.9 kB / 0.7693 GB, free: 12.66 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.884e-05/0.009773, allocations: 83.81 kB / 0.7694 GB, free: 12.56 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.184e-05/0.009825, allocations: 18.73 kB / 0.7694 GB, free: 12.55 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.009936, allocations: 99.34 kB / 0.7695 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of SimCode: time 5.91e-07/0.009936, allocations: 0 / 0.7695 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of Templates: time 0.004555/0.01449, allocations: 3.131 MB / 0.7725 GB, free: 9.496 MB / 0.7292 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.966198719106615]