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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001056/0.001056, allocations: 92.23 kB / 16.02 MB, free: 80 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.001469/0.001469, allocations: 181.4 kB / 16.92 MB, free: 6.652 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.416/1.416, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.733/2.733, allocations: 437.8 MB / 0.7128 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000346/0.0003461, allocations: 15.98 kB / 0.8735 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.751/0.7514, allocations: 153.8 MB / 1.024 GB, free: 28 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.002376/0.7538, allocations: 1.658 MB / 1.025 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001395/0.7552, allocations: 0.7247 MB / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.7554, allocations: 0 / 1.026 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002372/0.7556, allocations: 75.77 kB / 1.026 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.7558, allocations: 83.69 kB / 1.026 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006076/0.7564, allocations: 159.4 kB / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003407/0.7568, allocations: 235.4 kB / 1.027 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001857/0.757, allocations: 68 kB / 1.027 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001814/0.7572, allocations: 87.61 kB / 1.027 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.7574, allocations: 131.5 kB / 1.027 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.502e-05/0.7574, allocations: 4 kB / 1.027 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.7576, allocations: 79.92 kB / 1.027 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.273e-05/0.7577, allocations: 51.77 kB / 1.027 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.7578, allocations: 113 kB / 1.027 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002717/0.7581, allocations: 223.5 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.7581, allocations: 0 / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.084e-06/0.7581, allocations: 0 / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.765e-06/0.7581, allocations: 0 / 1.027 GB, free: 12.34 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.0008903/0.759, allocations: 0.5431 MB / 1.028 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.7591, allocations: 11.97 kB / 1.028 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.7592, allocations: 28.66 kB / 1.028 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005086/0.7597, allocations: 310.8 kB / 1.028 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.7598, allocations: 12.38 kB / 1.028 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.276e-05/0.7598, allocations: 16.38 kB / 1.028 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004793/0.7603, allocations: 231.2 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.7603, allocations: 4 kB / 1.028 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/0.7603, allocations: 4 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.7604, allocations: 4 kB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003081/0.7607, allocations: 136.3 kB / 1.029 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009533/0.7616, allocations: 0.677 MB / 1.029 GB, free: 10.2 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003989/0.762, allocations: 182.4 kB / 1.029 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000187/0.7622, allocations: 109 kB / 1.029 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.688e-05/0.7623, allocations: 0 / 1.029 GB, free: 9.906 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003352/0.7626, allocations: 169 kB / 1.03 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=15): time 1.764e-06/0.7626, allocations: 0 / 1.03 GB, free: 9.723 MB / 0.7794 GB Notification: Performance of matching and sorting (n=15): time 0.000779/0.7634, allocations: 397.4 kB / 1.03 GB, free: 9.324 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.016e-05/0.7635, allocations: 132.6 kB / 1.03 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.7638, allocations: 282.6 kB / 1.03 GB, free: 8.879 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.2e-05/0.7639, allocations: 33.7 kB / 1.03 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.764, allocations: 160.2 kB / 1.031 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.358e-05/0.764, allocations: 43.44 kB / 1.031 GB, free: 8.637 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.489e-05/0.7641, allocations: 25.7 kB / 1.031 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.7642, allocations: 338.8 kB / 1.031 GB, free: 8.266 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001811/0.7644, allocations: 87.89 kB / 1.031 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.7646, allocations: 144.2 kB / 1.031 GB, free: 8.023 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003669/0.765, allocations: 252.5 kB / 1.031 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.765, allocations: 0 / 1.031 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005405/0.7656, allocations: 340.8 kB / 1.032 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.232e-05/0.7656, allocations: 37.69 kB / 1.032 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.7656, allocations: 96 / 1.032 GB, free: 7.367 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.7657, allocations: 11.98 kB / 1.032 GB, free: 7.355 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.7658, allocations: 23.98 kB / 1.032 GB, free: 7.332 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.7658, allocations: 0 / 1.032 GB, free: 7.332 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001483/0.766, allocations: 31.83 kB / 1.032 GB, free: 7.301 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.805e-05/0.766, allocations: 7.938 kB / 1.032 GB, free: 7.293 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.0001857/0.7662, allocations: 196 kB / 1.032 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.533e-05/0.7662, allocations: 27.62 kB / 1.032 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.012e-05/0.7663, allocations: 33.83 kB / 1.032 GB, free: 7.027 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.7663, allocations: 0 / 1.032 GB, free: 7.027 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.7663, allocations: 0 / 1.032 GB, free: 7.027 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.7663, allocations: 0 / 1.032 GB, free: 7.027 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002694/0.7666, allocations: 293.4 kB / 1.032 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.7666, allocations: 0 / 1.032 GB, free: 6.691 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.7667, allocations: 19.98 kB / 1.032 GB, free: 6.672 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.7667, allocations: 4 kB / 1.032 GB, free: 6.668 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.065e-05/0.7668, allocations: 11.94 kB / 1.032 GB, free: 6.656 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.7668, allocations: 0 / 1.032 GB, free: 6.656 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.7668, allocations: 0 / 1.032 GB, free: 6.656 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007517/0.7675, allocations: 482.2 kB / 1.033 GB, free: 6.16 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.335e-05/0.7676, allocations: 96.86 kB / 1.033 GB, free: 6.047 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.308e-05/0.7677, allocations: 8 kB / 1.033 GB, free: 6.039 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000119/0.7678, allocations: 23.98 kB / 1.033 GB, free: 6.016 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.729e-05/0.7679, allocations: 19.95 kB / 1.033 GB, free: 5.996 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-05/0.7679, allocations: 12 kB / 1.033 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001839/0.7681, allocations: 209.9 kB / 1.033 GB, free: 5.781 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.91e-07/0.7681, allocations: 0 / 1.033 GB, free: 5.781 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003047/0.7684, allocations: 56.11 kB / 1.033 GB, free: 5.727 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.0002205/0.7686, allocations: 127.2 kB / 1.033 GB, free: 5.594 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005042/0.7692, allocations: 315.3 kB / 1.034 GB, free: 5.273 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.7692, allocations: 0 / 1.034 GB, free: 5.273 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.7694, allocations: 191.3 kB / 1.034 GB, free: 5.074 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.7698, allocations: 30.94 kB / 1.034 GB, free: 5.047 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001149/0.7709, allocations: 0.5669 MB / 1.034 GB, free: 4.449 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003601/0.7713, allocations: 0.7555 MB / 1.035 GB, free: 3.668 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.669e-05/0.7714, allocations: 19.44 kB / 1.035 GB, free: 3.648 MB / 0.7794 GB Notification: Performance of SimCode: time 3e-07/0.7714, allocations: 0 / 1.035 GB, free: 3.648 MB / 0.7794 GB Notification: Performance of Templates: time 0.005866/0.7772, allocations: 2.958 MB / 1.038 GB, free: 0.6992 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/jenkins1/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