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.0009859/0.0009859, allocations: 80.3 kB / 21.47 MB, free: 3.031 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.001097/0.001097, allocations: 169.8 kB / 24.87 MB, free: 8.828 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.967/0.967, allocations: 177.1 MB / 205.3 MB, free: 5.508 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.906/1.906, allocations: 377.9 MB / 0.6247 GB, free: 8.383 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.533e-06/1.533e-06, allocations: 0 / 0.8128 GB, free: 1.457 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.256e-05/1.41e-05, allocations: 6.906 kB / 0.8128 GB, free: 1.449 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002537/0.002551, allocations: 1.976 MB / 0.8147 GB, free: 15.48 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0008928/0.003444, allocations: 0.7191 MB / 0.8154 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.487e-05/0.003539, allocations: 0 / 0.8154 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001984/0.003737, allocations: 83.58 kB / 0.8155 GB, free: 14.67 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 9.352e-05/0.003831, allocations: 93.45 kB / 0.8156 GB, free: 14.58 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003953/0.004226, allocations: 189.4 kB / 0.8157 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002253/0.004451, allocations: 259.4 kB / 0.816 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.004567, allocations: 52.09 kB / 0.816 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001428/0.004709, allocations: 159.6 kB / 0.8162 GB, free: 13.94 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.004856, allocations: 127.7 kB / 0.8163 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.843e-05/0.004884, allocations: 20 kB / 0.8163 GB, free: 13.79 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000107/0.004991, allocations: 93.75 kB / 0.8164 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 7.086e-05/0.005062, allocations: 59.77 kB / 0.8165 GB, free: 13.64 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 5.684e-05/0.005119, allocations: 51.86 kB / 0.8165 GB, free: 13.59 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002435/0.005362, allocations: 231.2 kB / 0.8168 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.005364, allocations: 0 / 0.8168 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of FrontEnd: time 6.71e-07/0.005365, allocations: 0.6875 kB / 0.8168 GB, free: 13.37 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 4.388e-06/0.005369, allocations: 0 / 0.8168 GB, free: 13.37 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.0005519/0.005921, allocations: 0.6035 MB / 0.8173 GB, free: 12.72 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.084e-05/0.005952, allocations: 8.031 kB / 0.8174 GB, free: 12.71 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.337e-05/0.006015, allocations: 49.28 kB / 0.8174 GB, free: 12.67 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.006222, allocations: 228.9 kB / 0.8176 GB, free: 12.42 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.006239, allocations: 8.375 kB / 0.8176 GB, free: 12.41 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.006263, allocations: 16.91 kB / 0.8176 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002184/0.006482, allocations: 261 kB / 0.8179 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.006488, allocations: 192 / 0.8179 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.006506, allocations: 8.375 kB / 0.8179 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.006512, allocations: 8.844 kB / 0.8179 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.421e-05/0.006586, allocations: 78.06 kB / 0.818 GB, free: 12 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004832/0.00707, allocations: 0.6839 MB / 0.8186 GB, free: 11.28 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.007185, allocations: 108.8 kB / 0.8188 GB, free: 11.15 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.654e-05/0.007232, allocations: 62.22 kB / 0.8188 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 9.748e-06/0.007242, allocations: 4 kB / 0.8188 GB, free: 11.08 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001189/0.00736, allocations: 156.3 kB / 0.819 GB, free: 10.9 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=15): time 1.002e-06/0.007362, allocations: 0 / 0.819 GB, free: 10.9 MB / 0.7761 GB Notification: Performance of matching and sorting (n=15): time 0.0002554/0.007617, allocations: 255.8 kB / 0.8192 GB, free: 10.63 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.007665, allocations: 132.5 kB / 0.8193 GB, free: 10.47 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000156/0.007821, allocations: 304.2 kB / 0.8196 GB, free: 10.16 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.00784, allocations: 33.7 kB / 0.8197 GB, free: 10.12 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.007944, allocations: 208.9 kB / 0.8199 GB, free: 9.914 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/0.007973, allocations: 47.56 kB / 0.8199 GB, free: 9.867 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.008024, allocations: 47.34 kB / 0.8199 GB, free: 9.812 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.000441/0.008465, allocations: 0.5157 MB / 0.8205 GB, free: 9.285 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.435e-05/0.00851, allocations: 52.22 kB / 0.8205 GB, free: 9.23 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.717e-05/0.008597, allocations: 171.1 kB / 0.8207 GB, free: 9.02 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001031/0.0087, allocations: 154 kB / 0.8208 GB, free: 8.84 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.008702, allocations: 0 / 0.8208 GB, free: 8.84 MB / 0.7761 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001994/0.008901, allocations: 232.5 kB / 0.821 GB, free: 8.598 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 3.044e-05/0.008932, allocations: 45.62 kB / 0.8211 GB, free: 8.547 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.008937, allocations: 5.469 kB / 0.8211 GB, free: 8.543 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.104e-06/0.008944, allocations: 0 / 0.8211 GB, free: 8.543 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.849e-05/0.009012, allocations: 23.92 kB / 0.8211 GB, free: 8.52 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.808e-06/0.009016, allocations: 4 kB / 0.8211 GB, free: 8.516 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.299e-05/0.009069, allocations: 12.67 kB / 0.8211 GB, free: 8.504 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.009081, allocations: 13.33 kB / 0.8211 GB, free: 8.492 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 9.268e-05/0.009173, allocations: 198.2 kB / 0.8213 GB, free: 8.281 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.112e-05/0.009204, allocations: 44.56 kB / 0.8214 GB, free: 8.238 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.945e-05/0.009234, allocations: 25.72 kB / 0.8214 GB, free: 8.211 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.009236, allocations: 0.6562 kB / 0.8214 GB, free: 8.211 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.014e-06/0.009238, allocations: 0 / 0.8214 GB, free: 8.211 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.009243, allocations: 4.641 kB / 0.8214 GB, free: 8.207 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001215/0.009364, allocations: 173.1 kB / 0.8216 GB, free: 8.012 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.009365, allocations: 3.094 kB / 0.8216 GB, free: 8.012 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.723e-05/0.009412, allocations: 15.98 kB / 0.8216 GB, free: 7.996 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.009414, allocations: 0 / 0.8216 GB, free: 7.996 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.009425, allocations: 8 kB / 0.8216 GB, free: 7.988 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.009427, allocations: 3.938 kB / 0.8216 GB, free: 7.984 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.009428, allocations: 0 / 0.8216 GB, free: 7.984 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002716/0.009699, allocations: 329.2 kB / 0.8219 GB, free: 7.621 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.811e-05/0.009717, allocations: 18.3 kB / 0.8219 GB, free: 7.605 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.009741, allocations: 8 kB / 0.8219 GB, free: 7.598 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.298e-05/0.009784, allocations: 15.92 kB / 0.8219 GB, free: 7.582 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.896e-05/0.009843, allocations: 27.95 kB / 0.822 GB, free: 7.555 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.009856, allocations: 4 kB / 0.822 GB, free: 7.551 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 8.004e-05/0.009936, allocations: 197.1 kB / 0.8222 GB, free: 7.359 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.009936, allocations: 0.9688 kB / 0.8222 GB, free: 7.359 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001727/0.01011, allocations: 55.89 kB / 0.8222 GB, free: 7.305 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.0001257/0.01023, allocations: 137.7 kB / 0.8223 GB, free: 7.164 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001818/0.01042, allocations: 221.1 kB / 0.8226 GB, free: 6.922 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.01042, allocations: 0 / 0.8226 GB, free: 6.922 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 8.023e-05/0.0105, allocations: 141.8 kB / 0.8227 GB, free: 6.762 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001801/0.01068, allocations: 38.28 kB / 0.8227 GB, free: 6.727 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004208/0.0111, allocations: 409.9 kB / 0.8231 GB, free: 6.297 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.423e-05/0.01114, allocations: 87.81 kB / 0.8232 GB, free: 6.191 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.74e-05/0.01119, allocations: 19.75 kB / 0.8232 GB, free: 6.176 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001197/0.01131, allocations: 122.2 kB / 0.8233 GB, free: 6.055 MB / 0.7761 GB Notification: Performance of SimCode: time 4.01e-07/0.01131, allocations: 4.438 kB / 0.8233 GB, free: 6.051 MB / 0.7761 GB Notification: Performance of Templates: time 0.004564/0.01587, allocations: 3.197 MB / 0.8265 GB, free: 2.91 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: 5.103928744327277]