Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") translateModel(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mot.y|mot.uppHys.y|mot.delta|ySet.y|mot.lowHys.u|mot.lowHys.y|mot.uppHys.u",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 99.36 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002045/0.002045, allocations: 195.9 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.462/2.462, allocations: 390.2 MB / 0.6643 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 67.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7305/0.7319, allocations: 140.4 MB / 0.9491 GB, free: 9.199 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003103/0.7351, allocations: 2.011 MB / 0.9511 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001108/0.7362, allocations: 0.6937 MB / 0.9517 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.7363, allocations: 2.969 kB / 0.9517 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002343/0.7366, allocations: 78.27 kB / 0.9518 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001082/0.7367, allocations: 84.58 kB / 0.9519 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005578/0.7373, allocations: 173.1 kB / 0.9521 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002768/0.7376, allocations: 267.2 kB / 0.9523 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001707/0.7377, allocations: 68.08 kB / 0.9524 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.7379, allocations: 118.5 kB / 0.9525 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001826/0.7381, allocations: 152.3 kB / 0.9526 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.86e-05/0.7381, allocations: 20.41 kB / 0.9527 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.7383, allocations: 97.31 kB / 0.9527 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.636e-05/0.7384, allocations: 52.31 kB / 0.9528 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 9.144e-05/0.7385, allocations: 113.2 kB / 0.9529 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003275/0.7388, allocations: 303.3 kB / 0.9532 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.7388, allocations: 3.938 kB / 0.9532 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7388, allocations: 0 / 0.9532 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.123e-05/0.7388, allocations: 5.125 kB / 0.9532 GB, free: 6.121 MB / 0.7169 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.0007534/0.7396, allocations: 0.5762 MB / 0.9538 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.7396, allocations: 8.719 kB / 0.9538 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.833e-05/0.7397, allocations: 27.16 kB / 0.9538 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003961/0.7401, allocations: 300 kB / 0.9541 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/0.7401, allocations: 14.94 kB / 0.9541 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.908e-05/0.7402, allocations: 15.19 kB / 0.9541 GB, free: 5.266 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.7406, allocations: 229 kB / 0.9543 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.7406, allocations: 0 / 0.9543 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.6e-05/0.7407, allocations: 6.5 kB / 0.9543 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.7407, allocations: 3.281 kB / 0.9543 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002604/0.7409, allocations: 136.4 kB / 0.9545 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007859/0.7417, allocations: 0.6747 MB / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003488/0.7421, allocations: 167.6 kB / 0.9553 GB, free: 4.32 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.7423, allocations: 104.8 kB / 0.9554 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.7423, allocations: 0 / 0.9554 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003568/0.7427, allocations: 172.5 kB / 0.9556 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.7427, allocations: 0 / 0.9556 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0006958/0.7434, allocations: 383.5 kB / 0.9559 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.7434, allocations: 136.6 kB / 0.956 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002692/0.7437, allocations: 280 kB / 0.9563 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.7437, allocations: 31.89 kB / 0.9563 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.952e-05/0.7438, allocations: 154.8 kB / 0.9565 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.703e-05/0.7439, allocations: 41.58 kB / 0.9565 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.499e-05/0.744, allocations: 41.39 kB / 0.9566 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.337e-05/0.744, allocations: 334.8 kB / 0.9569 GB, free: 3.035 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001636/0.7442, allocations: 94.08 kB / 0.957 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.7444, allocations: 127.8 kB / 0.9571 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.7447, allocations: 250.2 kB / 0.9573 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.7447, allocations: 0 / 0.9573 GB, free: 2.738 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005131/0.7453, allocations: 339.6 kB / 0.9577 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.441e-05/0.7453, allocations: 42.19 kB / 0.9577 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.7453, allocations: 0 / 0.9577 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.7453, allocations: 2.75 kB / 0.9577 GB, free: 2.527 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.7455, allocations: 25.95 kB / 0.9577 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.7455, allocations: 1.375 kB / 0.9577 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/0.7456, allocations: 22.92 kB / 0.9578 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.7457, allocations: 13.44 kB / 0.9578 GB, free: 2.5 MB / 0.7169 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.0001531/0.7458, allocations: 197.6 kB / 0.958 GB, free: 2.32 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.119e-05/0.7459, allocations: 25.47 kB / 0.958 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.819e-05/0.7459, allocations: 31.45 kB / 0.958 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.7459, allocations: 5.375 kB / 0.958 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.746, allocations: 0 / 0.958 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.746, allocations: 0 / 0.958 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002346/0.7462, allocations: 289.4 kB / 0.9583 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.7462, allocations: 1.125 kB / 0.9583 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.7463, allocations: 12.06 kB / 0.9583 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.7463, allocations: 3.984 kB / 0.9583 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.158e-05/0.7464, allocations: 3.5 kB / 0.9583 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.7464, allocations: 5.219 kB / 0.9583 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.7464, allocations: 0 / 0.9583 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00073/0.7471, allocations: 478 kB / 0.9588 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.987e-05/0.7472, allocations: 98.97 kB / 0.9589 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.384e-05/0.7472, allocations: 7.781 kB / 0.9589 GB, free: 1.629 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001043/0.7473, allocations: 12.3 kB / 0.9589 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.173e-05/0.7474, allocations: 21.34 kB / 0.9589 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.557e-05/0.7474, allocations: 17.27 kB / 0.9589 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001781/0.7476, allocations: 201.1 kB / 0.9591 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7476, allocations: 0 / 0.9591 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000317/0.748, allocations: 51.41 kB / 0.9592 GB, free: 1.469 MB / 0.7169 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.0002006/0.7482, allocations: 140.3 kB / 0.9593 GB, free: 1.355 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004932/0.7487, allocations: 299.5 kB / 0.9596 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.7487, allocations: 0 / 0.9596 GB, free: 1.188 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002406/0.7489, allocations: 184.7 kB / 0.9598 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003292/0.7493, allocations: 38.97 kB / 0.9598 GB, free: 1.047 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.7503, allocations: 0.5395 MB / 0.9603 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.7506, allocations: 0.7534 MB / 0.9611 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.118e-05/0.7507, allocations: 22.42 kB / 0.9611 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.896e-05/0.7508, allocations: 16.53 kB / 0.9611 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of SimCode: time 2.11e-07/0.7508, allocations: 0 / 0.9611 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of Templates: time 0.006753/0.7575, allocations: 2.657 MB / 0.9637 GB, free: 14.61 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches