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.001074/0.001074, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.539/1.539, allocations: 222.9 MB / 240.2 MB, free: 4.406 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.583/2.583, allocations: 390.2 MB / 0.6647 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 63.91 kB / 0.8125 GB, free: 14.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9261/0.9282, allocations: 140.4 MB / 0.9496 GB, free: 9.234 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003364/0.9317, allocations: 1.953 MB / 0.9515 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001099/0.9328, allocations: 0.7124 MB / 0.9522 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.9329, allocations: 3.25 kB / 0.9522 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002184/0.9331, allocations: 81.23 kB / 0.9523 GB, free: 7.078 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.9333, allocations: 101.4 kB / 0.9524 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005282/0.9338, allocations: 181.8 kB / 0.9525 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002772/0.9341, allocations: 271.4 kB / 0.9528 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.9343, allocations: 68.27 kB / 0.9529 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.9344, allocations: 114.1 kB / 0.953 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.9346, allocations: 147.2 kB / 0.9531 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.435e-05/0.9346, allocations: 24.72 kB / 0.9531 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001563/0.9348, allocations: 96.28 kB / 0.9532 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.077e-05/0.9349, allocations: 50.53 kB / 0.9533 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.935, allocations: 109.3 kB / 0.9534 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003269/0.9353, allocations: 304.1 kB / 0.9537 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.9353, allocations: 7.938 kB / 0.9537 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9354, allocations: 0 / 0.9537 GB, free: 6.152 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.785e-06/0.9354, allocations: 1.344 kB / 0.9537 GB, free: 6.152 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.0009702/0.9363, allocations: 0.5756 MB / 0.9542 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.9364, allocations: 20.02 kB / 0.9543 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.584e-05/0.9365, allocations: 29.53 kB / 0.9543 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000468/0.937, allocations: 299.4 kB / 0.9546 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.937, allocations: 15.19 kB / 0.9546 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.937, allocations: 13.44 kB / 0.9546 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003862/0.9374, allocations: 224.8 kB / 0.9548 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.9375, allocations: 1.125 kB / 0.9548 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/0.9375, allocations: 6.5 kB / 0.9548 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.9375, allocations: 2.5 kB / 0.9548 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.9377, allocations: 131.3 kB / 0.9549 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007404/0.9385, allocations: 0.6826 MB / 0.9556 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003468/0.9389, allocations: 168.1 kB / 0.9558 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001587/0.939, allocations: 99.58 kB / 0.9559 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.939, allocations: 1.312 kB / 0.9559 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003319/0.9394, allocations: 170.2 kB / 0.956 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=15): time 1.563e-06/0.9394, allocations: 0 / 0.956 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of matching and sorting (n=15): time 0.0006589/0.9401, allocations: 377.7 kB / 0.9564 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/0.9401, allocations: 136.6 kB / 0.9565 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.9404, allocations: 284.4 kB / 0.9568 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.354e-05/0.9404, allocations: 31.08 kB / 0.9568 GB, free: 3.598 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 8.701e-05/0.9405, allocations: 159.3 kB / 0.957 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.334e-05/0.9405, allocations: 40.95 kB / 0.957 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.433e-05/0.9406, allocations: 37.95 kB / 0.957 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.399e-05/0.9407, allocations: 343.5 kB / 0.9574 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000171/0.9409, allocations: 89.52 kB / 0.9575 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001775/0.941, allocations: 124 kB / 0.9576 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003153/0.9414, allocations: 244.5 kB / 0.9578 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.9414, allocations: 0.9688 kB / 0.9578 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000493/0.9419, allocations: 337 kB / 0.9581 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.9419, allocations: 37.5 kB / 0.9582 GB, free: 2.566 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.9419, allocations: 5.219 kB / 0.9582 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.942, allocations: 2.375 kB / 0.9582 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.9421, allocations: 29.67 kB / 0.9582 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.004e-06/0.9421, allocations: 1 kB / 0.9582 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001173/0.9422, allocations: 26.33 kB / 0.9582 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.858e-05/0.9423, allocations: 6.469 kB / 0.9582 GB, free: 2.535 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.0001631/0.9424, allocations: 198.1 kB / 0.9584 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.446e-05/0.9425, allocations: 32.61 kB / 0.9585 GB, free: 2.336 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.375e-05/0.9425, allocations: 23.34 kB / 0.9585 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.9425, allocations: 1.062 kB / 0.9585 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.9426, allocations: 0 / 0.9585 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.9426, allocations: 5.203 kB / 0.9585 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.9428, allocations: 289.5 kB / 0.9588 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.9428, allocations: 0 / 0.9588 GB, free: 2.043 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000103/0.9429, allocations: 20.14 kB / 0.9588 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.9429, allocations: 1.188 kB / 0.9588 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.091e-05/0.9429, allocations: 6.984 kB / 0.9588 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.9429, allocations: 4.969 kB / 0.9588 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.9429, allocations: 0 / 0.9588 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007049/0.9437, allocations: 473.1 kB / 0.9592 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.381e-05/0.9437, allocations: 106.8 kB / 0.9593 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.163e-05/0.9438, allocations: 4.219 kB / 0.9594 GB, free: 1.656 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.9439, allocations: 19.3 kB / 0.9594 GB, free: 1.645 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.535e-05/0.9439, allocations: 22.81 kB / 0.9594 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.944, allocations: 3.938 kB / 0.9594 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001631/0.9441, allocations: 205.6 kB / 0.9596 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9441, allocations: 0 / 0.9596 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002843/0.9444, allocations: 55.44 kB / 0.9596 GB, free: 1.492 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.000186/0.9446, allocations: 137.4 kB / 0.9598 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005019/0.9451, allocations: 301.6 kB / 0.9601 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.9451, allocations: 1.031 kB / 0.9601 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.9454, allocations: 184.3 kB / 0.9602 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002893/0.9457, allocations: 29.48 kB / 0.9603 GB, free: 1.078 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009182/0.9466, allocations: 487.8 kB / 0.9607 GB, free: 0.7656 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001816/0.9468, allocations: 0.7515 MB / 0.9615 GB, free: 36 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.944e-05/0.9469, allocations: 18.83 kB / 0.9615 GB, free: 28 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.333e-05/0.9469, allocations: 20.81 kB / 0.9615 GB, free: 16 kB / 0.7169 GB Notification: Performance of SimCode: time 2.81e-07/0.9469, allocations: 0 / 0.9615 GB, free: 16 kB / 0.7169 GB Notification: Performance of Templates: time 0.00695/0.9539, allocations: 2.834 MB / 0.9643 GB, free: 14.62 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