Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001075/0.001074, allocations: 91.77 kB / 15.36 MB, free: 0.7383 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.009122/0.009123, allocations: 171.4 kB / 16.26 MB, free: 6.613 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.558/1.558, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.837/2.837, allocations: 437.8 MB / 0.7121 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004305/0.0004301, allocations: 11.98 kB / 0.8728 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8512/0.8517, allocations: 153.8 MB / 1.023 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002509/0.8542, allocations: 1.654 MB / 1.025 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001333/0.8556, allocations: 0.7053 MB / 1.025 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001061/0.8557, allocations: 7.938 kB / 1.025 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002497/0.856, allocations: 87.69 kB / 1.025 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001225/0.8561, allocations: 79.7 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005692/0.8567, allocations: 155.7 kB / 1.026 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003385/0.857, allocations: 239.4 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.8573, allocations: 64.02 kB / 1.026 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001533/0.8574, allocations: 95.59 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.8577, allocations: 135.5 kB / 1.026 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.8577, allocations: 4 kB / 1.026 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001625/0.8579, allocations: 75.88 kB / 1.026 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.194e-05/0.858, allocations: 39.84 kB / 1.026 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001574/0.8581, allocations: 117 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003997/0.8585, allocations: 287 kB / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.8586, allocations: 0 / 1.027 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.475e-06/0.8586, allocations: 4 kB / 1.027 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.8586, allocations: 0 / 1.027 GB, free: 12.29 MB / 0.7794 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.001097/0.8597, allocations: 0.5431 MB / 1.027 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.051e-05/0.8598, allocations: 8.031 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.385e-05/0.8598, allocations: 28.66 kB / 1.027 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005033/0.8604, allocations: 306.8 kB / 1.028 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.001e-05/0.8604, allocations: 12.38 kB / 1.028 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.433e-05/0.8605, allocations: 20.38 kB / 1.028 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004365/0.8609, allocations: 227.2 kB / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.8609, allocations: 0 / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.8609, allocations: 8 kB / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.861, allocations: 0 / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.8612, allocations: 144.3 kB / 1.028 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009703/0.8622, allocations: 0.677 MB / 1.029 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003795/0.8626, allocations: 182.4 kB / 1.029 GB, free: 9.973 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/0.8628, allocations: 108.9 kB / 1.029 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.299e-05/0.8628, allocations: 0 / 1.029 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003668/0.8632, allocations: 181.1 kB / 1.029 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 3.918e-06/0.8632, allocations: 0 / 1.029 GB, free: 9.668 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.0007191/0.8639, allocations: 392.7 kB / 1.029 GB, free: 9.273 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.513e-05/0.864, allocations: 132.5 kB / 1.03 GB, free: 9.113 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002953/0.8643, allocations: 282.7 kB / 1.03 GB, free: 8.828 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.8644, allocations: 29.7 kB / 1.03 GB, free: 8.793 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.8645, allocations: 156.2 kB / 1.03 GB, free: 8.637 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.444e-05/0.8646, allocations: 43.45 kB / 1.03 GB, free: 8.594 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.365e-05/0.8646, allocations: 21.8 kB / 1.03 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000247/0.8649, allocations: 342.8 kB / 1.03 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.865, allocations: 99.83 kB / 1.03 GB, free: 8.125 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.8652, allocations: 131.9 kB / 1.031 GB, free: 7.98 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00034/0.8656, allocations: 248.3 kB / 1.031 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.8656, allocations: 0 / 1.031 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005163/0.8661, allocations: 347 kB / 1.031 GB, free: 7.363 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.404e-05/0.8662, allocations: 37.69 kB / 1.031 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.8662, allocations: 0 / 1.031 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.8662, allocations: 0 / 1.031 GB, free: 7.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.8663, allocations: 27.92 kB / 1.031 GB, free: 7.293 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.8664, allocations: 4 kB / 1.031 GB, free: 7.289 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.8665, allocations: 31.92 kB / 1.031 GB, free: 7.258 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.8665, allocations: 8 kB / 1.031 GB, free: 7.25 MB / 0.7794 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.0002057/0.8667, allocations: 188.6 kB / 1.031 GB, free: 7.051 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.137e-05/0.8668, allocations: 31.62 kB / 1.031 GB, free: 7.02 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.71e-05/0.8668, allocations: 25.84 kB / 1.031 GB, free: 6.996 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.107e-06/0.8668, allocations: 3.984 kB / 1.031 GB, free: 6.992 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.8669, allocations: 4 kB / 1.031 GB, free: 6.988 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.8669, allocations: 4 kB / 1.031 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003742/0.8672, allocations: 293.4 kB / 1.032 GB, free: 6.648 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.8673, allocations: 7.938 kB / 1.032 GB, free: 6.641 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/0.8674, allocations: 12 kB / 1.032 GB, free: 6.629 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.8674, allocations: 3.938 kB / 1.032 GB, free: 6.625 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.8674, allocations: 11.98 kB / 1.032 GB, free: 6.613 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.8674, allocations: 0 / 1.032 GB, free: 6.613 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.8674, allocations: 0 / 1.032 GB, free: 6.613 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007583/0.8682, allocations: 486.1 kB / 1.032 GB, free: 6.113 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.36e-05/0.8682, allocations: 96.84 kB / 1.032 GB, free: 6 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.973e-05/0.8683, allocations: 8 kB / 1.032 GB, free: 5.992 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.8684, allocations: 24.05 kB / 1.032 GB, free: 5.969 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.771e-05/0.8685, allocations: 19.97 kB / 1.032 GB, free: 5.949 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/0.8685, allocations: 11.98 kB / 1.032 GB, free: 5.938 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001836/0.8687, allocations: 198 kB / 1.033 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.8687, allocations: 0 / 1.033 GB, free: 5.746 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002888/0.869, allocations: 56.12 kB / 1.033 GB, free: 5.691 MB / 0.7794 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.0002147/0.8692, allocations: 135.2 kB / 1.033 GB, free: 5.551 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004931/0.8697, allocations: 311.1 kB / 1.033 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.8697, allocations: 0 / 1.033 GB, free: 5.234 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002436/0.87, allocations: 195.5 kB / 1.033 GB, free: 5.031 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.8703, allocations: 31.89 kB / 1.033 GB, free: 5.004 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00109/0.8714, allocations: 0.534 MB / 1.034 GB, free: 4.445 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.8718, allocations: 0.7555 MB / 1.035 GB, free: 3.664 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.637e-05/0.8718, allocations: 17.48 kB / 1.035 GB, free: 3.641 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.234e-05/0.8719, allocations: 23.42 kB / 1.035 GB, free: 3.617 MB / 0.7794 GB Notification: Performance of SimCode: time 3.41e-07/0.8719, allocations: 7.938 kB / 1.035 GB, free: 3.609 MB / 0.7794 GB Notification: Performance of Templates: time 0.006784/0.8787, allocations: 2.517 MB / 1.037 GB, free: 1.109 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & ./Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches