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.0009639/0.0009639, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.0009627/0.0009627, allocations: 185 kB / 24.09 MB, free: 416 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.9814/0.9814, allocations: 177.1 MB / 204.5 MB, free: 5.523 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.826/1.826, allocations: 377.9 MB / 0.624 GB, free: 8.43 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.412e-06/1.412e-06, allocations: 0 / 0.812 GB, free: 348 kB / 0.7136 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.336e-05, allocations: 2.312 kB / 0.812 GB, free: 344 kB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002473/0.002496, allocations: 1.97 MB / 0.8139 GB, free: 14.38 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.001037/0.003534, allocations: 0.7258 MB / 0.8146 GB, free: 13.64 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001098/0.003644, allocations: 0 / 0.8146 GB, free: 13.64 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.003825, allocations: 84.67 kB / 0.8147 GB, free: 13.56 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 0.0001087/0.003933, allocations: 96.89 kB / 0.8148 GB, free: 13.47 MB / 0.7292 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.004388, allocations: 189.5 kB / 0.815 GB, free: 13.29 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 0.0002794/0.004668, allocations: 267.4 kB / 0.8152 GB, free: 13.02 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001332/0.004801, allocations: 46.66 kB / 0.8153 GB, free: 12.98 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.00499, allocations: 159.7 kB / 0.8154 GB, free: 12.82 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001578/0.005148, allocations: 137.6 kB / 0.8156 GB, free: 12.69 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 2.93e-05/0.005178, allocations: 23.94 kB / 0.8156 GB, free: 12.66 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.0053, allocations: 83.92 kB / 0.8157 GB, free: 12.58 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 5.812e-05/0.005358, allocations: 58.27 kB / 0.8157 GB, free: 12.53 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 5.483e-05/0.005413, allocations: 59.78 kB / 0.8158 GB, free: 12.47 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.000253/0.005666, allocations: 227.2 kB / 0.816 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.005669, allocations: 0 / 0.816 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of FrontEnd: time 8.22e-07/0.00567, allocations: 0 / 0.816 GB, free: 12.25 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.987e-06/0.005674, allocations: 3.938 kB / 0.816 GB, free: 12.24 MB / 0.7292 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.0005612/0.006235, allocations: 0.5986 MB / 0.8166 GB, free: 11.6 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.006271, allocations: 9.406 kB / 0.8166 GB, free: 11.59 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.298e-05/0.006324, allocations: 40.8 kB / 0.8166 GB, free: 11.55 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002139/0.006538, allocations: 232.4 kB / 0.8168 GB, free: 11.3 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.006557, allocations: 12.38 kB / 0.8169 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.006582, allocations: 17.17 kB / 0.8169 GB, free: 11.27 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.006822, allocations: 256.2 kB / 0.8171 GB, free: 10.97 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.006831, allocations: 4.172 kB / 0.8171 GB, free: 10.97 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.006843, allocations: 9.75 kB / 0.8171 GB, free: 10.96 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.00685, allocations: 7.938 kB / 0.8171 GB, free: 10.95 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.172e-05/0.006922, allocations: 70.08 kB / 0.8172 GB, free: 10.88 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005324/0.007454, allocations: 0.6831 MB / 0.8179 GB, free: 10.16 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001141/0.007569, allocations: 101.7 kB / 0.818 GB, free: 10.04 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.675e-05/0.007615, allocations: 65.92 kB / 0.818 GB, free: 9.969 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.007628, allocations: 4.75 kB / 0.818 GB, free: 9.965 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001288/0.007757, allocations: 149.6 kB / 0.8182 GB, free: 9.793 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=15): time 1.303e-06/0.007758, allocations: 0 / 0.8182 GB, free: 9.793 MB / 0.7292 GB Notification: Performance of matching and sorting (n=15): time 0.0002713/0.008029, allocations: 250.5 kB / 0.8184 GB, free: 9.523 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.008081, allocations: 142 kB / 0.8185 GB, free: 9.355 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.008252, allocations: 300.2 kB / 0.8188 GB, free: 9.051 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.00827, allocations: 33.7 kB / 0.8189 GB, free: 9.012 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 9.995e-05/0.00837, allocations: 207.1 kB / 0.8191 GB, free: 8.805 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.008397, allocations: 50.84 kB / 0.8191 GB, free: 8.758 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.163e-05/0.008449, allocations: 47.33 kB / 0.8192 GB, free: 8.703 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.008581, allocations: 0.5157 MB / 0.8197 GB, free: 8.176 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.071e-05/0.008631, allocations: 57.62 kB / 0.8197 GB, free: 8.113 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.653e-05/0.008718, allocations: 169.4 kB / 0.8199 GB, free: 7.906 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001033/0.008821, allocations: 148.1 kB / 0.82 GB, free: 7.734 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.008823, allocations: 0.5 kB / 0.82 GB, free: 7.734 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002158/0.009039, allocations: 241 kB / 0.8203 GB, free: 7.484 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 3.585e-05/0.009075, allocations: 39.66 kB / 0.8203 GB, free: 7.441 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.269e-06/0.00908, allocations: 4 kB / 0.8203 GB, free: 7.438 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.009092, allocations: 1.438 kB / 0.8203 GB, free: 7.438 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.405e-05/0.009166, allocations: 23.92 kB / 0.8203 GB, free: 7.414 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.009171, allocations: 4 kB / 0.8203 GB, free: 7.41 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.122e-05/0.009232, allocations: 21.05 kB / 0.8203 GB, free: 7.391 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.009243, allocations: 4 kB / 0.8203 GB, free: 7.387 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 0.000119/0.009362, allocations: 208.2 kB / 0.8205 GB, free: 7.168 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.091e-05/0.009393, allocations: 36.33 kB / 0.8206 GB, free: 7.133 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.511e-05/0.009428, allocations: 26.67 kB / 0.8206 GB, free: 7.105 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.00943, allocations: 0 / 0.8206 GB, free: 7.105 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.104e-06/0.009432, allocations: 0 / 0.8206 GB, free: 7.105 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.009436, allocations: 8.828 kB / 0.8206 GB, free: 7.098 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.009579, allocations: 173 kB / 0.8208 GB, free: 6.902 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.00958, allocations: 1.281 kB / 0.8208 GB, free: 6.902 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.7e-05/0.009637, allocations: 19.98 kB / 0.8208 GB, free: 6.883 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.009639, allocations: 0 / 0.8208 GB, free: 6.883 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.009652, allocations: 8.719 kB / 0.8208 GB, free: 6.875 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.009654, allocations: 3.938 kB / 0.8208 GB, free: 6.871 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.009655, allocations: 0.875 kB / 0.8208 GB, free: 6.871 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.009943, allocations: 327.1 kB / 0.8211 GB, free: 6.512 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.246e-05/0.009965, allocations: 29.3 kB / 0.8211 GB, free: 6.484 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.329e-05/0.009989, allocations: 4 kB / 0.8212 GB, free: 6.48 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.715e-05/0.01004, allocations: 15.94 kB / 0.8212 GB, free: 6.465 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.777e-05/0.01009, allocations: 27.94 kB / 0.8212 GB, free: 6.438 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.01011, allocations: 5.062 kB / 0.8212 GB, free: 6.434 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 9.209e-05/0.0102, allocations: 201.1 kB / 0.8214 GB, free: 6.234 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5.1e-08/0.0102, allocations: 0 / 0.8214 GB, free: 6.234 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002017/0.0104, allocations: 61.02 kB / 0.8214 GB, free: 6.176 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.0001741/0.01058, allocations: 135.7 kB / 0.8216 GB, free: 6.039 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0001937/0.01077, allocations: 219.5 kB / 0.8218 GB, free: 5.797 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.01077, allocations: 4 kB / 0.8218 GB, free: 5.793 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 8.599e-05/0.01086, allocations: 137.3 kB / 0.8219 GB, free: 5.637 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/0.01105, allocations: 37.41 kB / 0.822 GB, free: 5.602 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005059/0.01156, allocations: 422 kB / 0.8224 GB, free: 5.156 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.809e-05/0.01161, allocations: 83.81 kB / 0.8224 GB, free: 5.055 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 5.286e-05/0.01166, allocations: 17.58 kB / 0.8225 GB, free: 5.043 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.01178, allocations: 122.2 kB / 0.8226 GB, free: 4.922 MB / 0.7292 GB Notification: Performance of SimCode: time 8.31e-07/0.01178, allocations: 0 / 0.8226 GB, free: 4.922 MB / 0.7292 GB Notification: Performance of Templates: time 0.00496/0.01674, allocations: 3.146 MB / 0.8256 GB, free: 1.84 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.830488936044276]