Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001535/0.001535, 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.001849/0.001849, allocations: 192.9 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.449/1.449, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.997/2.997, allocations: 472.6 MB / 0.7451 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 76.81 kB / 0.9121 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3538, allocations: 159.9 MB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.004486/0.3583, allocations: 1.949 MB / 1.07 GB, free: 8.395 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001407/0.3598, allocations: 0.713 MB / 1.071 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002316/0.36, allocations: 4 kB / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002821/0.3603, allocations: 79.62 kB / 1.071 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002407/0.3606, allocations: 91.58 kB / 1.071 GB, free: 7.504 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000852/0.3615, allocations: 191.1 kB / 1.071 GB, free: 7.32 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0004647/0.362, allocations: 267.2 kB / 1.071 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001989/0.3622, allocations: 78.08 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002131/0.3624, allocations: 119.7 kB / 1.072 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.3627, allocations: 147.5 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.984e-05/0.3627, allocations: 20 kB / 1.072 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000196/0.3629, allocations: 91.92 kB / 1.072 GB, free: 6.609 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.35e-05/0.363, allocations: 55.78 kB / 1.072 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001176/0.3631, allocations: 107.4 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004344/0.3636, allocations: 295.1 kB / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3636, allocations: 0 / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.582e-06/0.3636, allocations: 0 / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.125e-05/0.3636, allocations: 4 kB / 1.072 GB, free: 6.156 MB / 0.8262 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.001064/0.3647, allocations: 0.5858 MB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.3648, allocations: 8.031 kB / 1.073 GB, free: 5.508 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.279e-05/0.3648, allocations: 28.56 kB / 1.073 GB, free: 5.48 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004765/0.3653, allocations: 298.9 kB / 1.073 GB, free: 5.152 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.698e-05/0.3654, allocations: 12.38 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.3654, allocations: 16.38 kB / 1.073 GB, free: 5.125 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004044/0.3658, allocations: 223.2 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.3658, allocations: 0 / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.3659, allocations: 12 kB / 1.073 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.3659, allocations: 4 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002647/0.3662, allocations: 140.3 kB / 1.074 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009575/0.3671, allocations: 0.6846 MB / 1.074 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003762/0.3675, allocations: 166.4 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001686/0.3677, allocations: 105 kB / 1.075 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.806e-05/0.3677, allocations: 3.984 kB / 1.075 GB, free: 3.707 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003689/0.3681, allocations: 174.3 kB / 1.075 GB, free: 3.52 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.743e-06/0.3681, allocations: 0 / 1.075 GB, free: 3.52 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006925/0.3688, allocations: 367 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.573e-05/0.3689, allocations: 140.5 kB / 1.075 GB, free: 2.98 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.3692, allocations: 282.6 kB / 1.075 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.945e-05/0.3692, allocations: 33.7 kB / 1.075 GB, free: 2.656 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.3694, allocations: 152.2 kB / 1.076 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 5.473e-05/0.3694, allocations: 51.34 kB / 1.076 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.976e-05/0.3695, allocations: 37.7 kB / 1.076 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.3697, allocations: 338.8 kB / 1.076 GB, free: 2.07 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/0.3699, allocations: 91.89 kB / 1.076 GB, free: 1.98 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001849/0.3701, allocations: 126 kB / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003925/0.3705, allocations: 244.1 kB / 1.076 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3705, allocations: 0 / 1.076 GB, free: 1.578 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005422/0.371, allocations: 341.3 kB / 1.077 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.3711, allocations: 37.69 kB / 1.077 GB, free: 1.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3711, allocations: 4 kB / 1.077 GB, free: 1.188 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.3711, allocations: 0 / 1.077 GB, free: 1.188 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.3713, allocations: 32.02 kB / 1.077 GB, free: 1.156 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.3713, allocations: 4 kB / 1.077 GB, free: 1.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.3714, allocations: 23.83 kB / 1.077 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.3714, allocations: 11.94 kB / 1.077 GB, free: 1.117 MB / 0.8262 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.0001783/0.3716, allocations: 199.6 kB / 1.077 GB, free: 0.9102 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.3717, allocations: 23.72 kB / 1.077 GB, free: 0.8867 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.406e-05/0.3717, allocations: 25.83 kB / 1.077 GB, free: 0.8633 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.3717, allocations: 8 kB / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.3717, allocations: 0 / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3718, allocations: 0 / 1.077 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002528/0.372, allocations: 293.3 kB / 1.077 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.372, allocations: 0 / 1.077 GB, free: 0.5195 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.3721, allocations: 16 kB / 1.077 GB, free: 0.5039 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.3721, allocations: 3.984 kB / 1.077 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.824e-05/0.3722, allocations: 4 kB / 1.077 GB, free: 0.4961 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.3722, allocations: 4 kB / 1.077 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.3722, allocations: 0 / 1.077 GB, free: 0.4922 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000683/0.3729, allocations: 475.8 kB / 1.078 GB, free: 4 kB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.044e-05/0.373, allocations: 101 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.152e-05/0.373, allocations: 7.938 kB / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001047/0.3731, allocations: 15.98 kB / 1.078 GB, free: 15.86 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.995e-05/0.3732, allocations: 19.97 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.3732, allocations: 7.984 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001778/0.3734, allocations: 206 kB / 1.078 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3734, allocations: 0 / 1.078 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002829/0.3737, allocations: 59.84 kB / 1.078 GB, free: 15.57 MB / 0.8419 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.0002065/0.3739, allocations: 131.7 kB / 1.078 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004834/0.3744, allocations: 299.4 kB / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3744, allocations: 4 kB / 1.079 GB, free: 15.13 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.3747, allocations: 187.3 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002964/0.375, allocations: 32.53 kB / 1.079 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000998/0.376, allocations: 486.9 kB / 1.079 GB, free: 14.4 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.3763, allocations: 0.7553 MB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 9.167e-05/0.3764, allocations: 13.55 kB / 1.08 GB, free: 13.61 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.282e-05/0.3765, allocations: 27.44 kB / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of SimCode: time 2.2e-07/0.3765, allocations: 0 / 1.08 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of Templates: time 0.006607/0.3831, allocations: 2.836 MB / 1.083 GB, free: 10.77 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches