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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.007362/0.007362, allocations: 101.1 kB / 15.88 MB, free: 6.324 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.001619/0.001619, allocations: 193.6 kB / 16.79 MB, free: 6.254 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.432/1.432, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.75/2.75, allocations: 461.9 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 61.22 kB / 0.899 GB, free: 37.06 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3494, allocations: 157.4 MB / 1.053 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003915/0.3534, allocations: 1.999 MB / 1.055 GB, free: 6.285 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001561/0.355, allocations: 0.7285 MB / 1.055 GB, free: 5.551 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002609/0.3552, allocations: 4 kB / 1.055 GB, free: 5.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003002/0.3556, allocations: 71.77 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.3558, allocations: 87.69 kB / 1.056 GB, free: 5.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006726/0.3565, allocations: 155.8 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004111/0.3569, allocations: 239.4 kB / 1.056 GB, free: 5.004 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.3571, allocations: 70.11 kB / 1.056 GB, free: 4.938 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000193/0.3573, allocations: 99.59 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002508/0.3576, allocations: 139.5 kB / 1.056 GB, free: 4.703 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.249e-05/0.3577, allocations: 8 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000171/0.3578, allocations: 87.92 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.676e-05/0.3579, allocations: 59.69 kB / 1.056 GB, free: 4.551 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.3581, allocations: 91.34 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003025/0.3584, allocations: 215.6 kB / 1.057 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3584, allocations: 4 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3584, allocations: 0 / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.117e-06/0.3584, allocations: 0 / 1.057 GB, free: 4.246 MB / 0.8106 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.0009679/0.3594, allocations: 0.5742 MB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.3594, allocations: 15.91 kB / 1.057 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.528e-05/0.3595, allocations: 36.64 kB / 1.057 GB, free: 3.566 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005012/0.3601, allocations: 302.8 kB / 1.058 GB, free: 3.23 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.3601, allocations: 12.38 kB / 1.058 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.696e-05/0.3601, allocations: 12.38 kB / 1.058 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004244/0.3606, allocations: 231.2 kB / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.3606, allocations: 0 / 1.058 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.377e-05/0.3606, allocations: 4 kB / 1.058 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.3606, allocations: 4 kB / 1.058 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002734/0.3609, allocations: 132.3 kB / 1.058 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009369/0.3619, allocations: 0.6769 MB / 1.059 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003803/0.3622, allocations: 178.4 kB / 1.059 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.3624, allocations: 92.95 kB / 1.059 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.89e-05/0.3625, allocations: 4 kB / 1.059 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003759/0.3628, allocations: 175.8 kB / 1.059 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.3629, allocations: 0 / 1.059 GB, free: 1.617 MB / 0.8106 GB Notification: Performance of matching and sorting (n=15): time 0.0007154/0.3636, allocations: 375 kB / 1.059 GB, free: 1.238 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.734e-05/0.3637, allocations: 136.5 kB / 1.06 GB, free: 1.074 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.364, allocations: 274.7 kB / 1.06 GB, free: 0.8008 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.439e-05/0.364, allocations: 33.7 kB / 1.06 GB, free: 0.7617 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.3641, allocations: 164.1 kB / 1.06 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.986e-05/0.3642, allocations: 39.44 kB / 1.06 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.708e-05/0.3643, allocations: 41.7 kB / 1.06 GB, free: 0.5117 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.3644, allocations: 342.8 kB / 1.06 GB, free: 172 kB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/0.3646, allocations: 91.8 kB / 1.06 GB, free: 80 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.3648, allocations: 129 kB / 1.061 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.3652, allocations: 236.4 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.3652, allocations: 4 kB / 1.061 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005223/0.3657, allocations: 334.8 kB / 1.061 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.938e-05/0.3658, allocations: 37.7 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.3658, allocations: 3.984 kB / 1.061 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.823e-05/0.3658, allocations: 8.094 kB / 1.061 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.3659, allocations: 19.98 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.3659, allocations: 3.938 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001342/0.3661, allocations: 27.83 kB / 1.061 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/0.3661, allocations: 11.98 kB / 1.061 GB, free: 15.22 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.000183/0.3663, allocations: 183.5 kB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.3664, allocations: 23.72 kB / 1.061 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.754e-05/0.3664, allocations: 37.92 kB / 1.061 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.3664, allocations: 3.938 kB / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3664, allocations: 0 / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.3665, allocations: 3.984 kB / 1.062 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002659/0.3667, allocations: 285.4 kB / 1.062 GB, free: 14.63 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.3667, allocations: 7.938 kB / 1.062 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.3669, allocations: 19.92 kB / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3669, allocations: 0 / 1.062 GB, free: 14.6 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.561e-05/0.3669, allocations: 15.98 kB / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3669, allocations: 0 / 1.062 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3669, allocations: 4 kB / 1.062 GB, free: 14.58 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007551/0.3677, allocations: 462.3 kB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-05/0.3677, allocations: 100.8 kB / 1.062 GB, free: 13.99 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.831e-05/0.3678, allocations: 8 kB / 1.062 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.3679, allocations: 11.98 kB / 1.062 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.383e-05/0.368, allocations: 27.97 kB / 1.062 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.477e-05/0.368, allocations: 11.98 kB / 1.062 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001922/0.3682, allocations: 202 kB / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3682, allocations: 0 / 1.063 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003013/0.3686, allocations: 59.97 kB / 1.063 GB, free: 13.68 MB / 0.8262 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.0002433/0.3688, allocations: 134 kB / 1.063 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0005017/0.3693, allocations: 295.2 kB / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3693, allocations: 0 / 1.063 GB, free: 13.24 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0002404/0.3696, allocations: 183.3 kB / 1.063 GB, free: 13.05 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.3699, allocations: 36.97 kB / 1.063 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.3711, allocations: 0.567 MB / 1.064 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002918/0.3714, allocations: 0.7517 MB / 1.065 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.744e-05/0.3714, allocations: 23.42 kB / 1.065 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3714, allocations: 0 / 1.065 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of Templates: time 0.005633/0.3771, allocations: 2.988 MB / 1.068 GB, free: 8.633 MB / 0.8262 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/jenkins1/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