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.001423/0.001423, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001747/0.001747, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.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.287/2.287, allocations: 390.3 MB / 0.6655 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 67.89 kB / 0.9515 GB, free: 7.633 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9039/0.9053, allocations: 140.4 MB / 1.089 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.003342/0.9087, allocations: 1.949 MB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001299/0.91, allocations: 0.7046 MB / 1.091 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.9101, allocations: 2.219 kB / 1.091 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000272/0.9104, allocations: 90.02 kB / 1.091 GB, free: 3.621 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001602/0.9106, allocations: 85.56 kB / 1.091 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006313/0.9112, allocations: 189 kB / 1.092 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003816/0.9116, allocations: 259.4 kB / 1.092 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001938/0.9118, allocations: 84.16 kB / 1.092 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.912, allocations: 119.8 kB / 1.092 GB, free: 3.297 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002658/0.9123, allocations: 150 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5e-05/0.9123, allocations: 20.09 kB / 1.092 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001957/0.9125, allocations: 93.06 kB / 1.092 GB, free: 3.227 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.415e-05/0.9126, allocations: 60 kB / 1.092 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.9127, allocations: 113 kB / 1.092 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004421/0.9132, allocations: 302.3 kB / 1.093 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.9132, allocations: 0 / 1.093 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.443e-06/0.9132, allocations: 0 / 1.093 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.575e-06/0.9132, allocations: 4.688 kB / 1.093 GB, free: 2.984 MB / 0.8575 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.0008831/0.9141, allocations: 0.5843 MB / 1.093 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.9142, allocations: 10.62 kB / 1.093 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.911e-05/0.9142, allocations: 30.56 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004912/0.9147, allocations: 306.7 kB / 1.094 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.879e-05/0.9148, allocations: 15.25 kB / 1.094 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.307e-05/0.9148, allocations: 14.25 kB / 1.094 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004202/0.9153, allocations: 225.2 kB / 1.094 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.9153, allocations: 4.906 kB / 1.094 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.9153, allocations: 14.19 kB / 1.094 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.9153, allocations: 3.516 kB / 1.094 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002881/0.9156, allocations: 127.9 kB / 1.094 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008557/0.9165, allocations: 0.6786 MB / 1.095 GB, free: 1.441 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000399/0.9169, allocations: 168.8 kB / 1.095 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001955/0.9171, allocations: 94.86 kB / 1.095 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.9171, allocations: 0.8125 kB / 1.095 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/0.9174, allocations: 177.6 kB / 1.095 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.9174, allocations: 0 / 1.095 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0008599/0.9183, allocations: 373.5 kB / 1.095 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.121e-05/0.9184, allocations: 136.9 kB / 1.096 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003414/0.9187, allocations: 279.7 kB / 1.096 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.9187, allocations: 36.83 kB / 1.096 GB, free: 0.7344 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001067/0.9189, allocations: 155.2 kB / 1.096 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.047e-05/0.9189, allocations: 41.61 kB / 1.096 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.954e-05/0.919, allocations: 45.16 kB / 1.096 GB, free: 0.5391 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.926e-05/0.9191, allocations: 338.8 kB / 1.096 GB, free: 220 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001941/0.9193, allocations: 86.09 kB / 1.096 GB, free: 196 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002187/0.9195, allocations: 134.9 kB / 1.097 GB, free: 116 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003934/0.9199, allocations: 236.4 kB / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.9199, allocations: 0.75 kB / 1.097 GB, free: 15.97 MB / 0.8731 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006431/0.9206, allocations: 334.5 kB / 1.097 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.055e-05/0.9206, allocations: 39.86 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.9206, allocations: 1.188 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.9207, allocations: 2.422 kB / 1.097 GB, free: 15.8 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.9208, allocations: 25.61 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.9208, allocations: 1.188 kB / 1.097 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.921, allocations: 31.47 kB / 1.097 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.921, allocations: 9.188 kB / 1.097 GB, free: 15.77 MB / 0.8731 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.0001972/0.9212, allocations: 197.3 kB / 1.097 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.521e-05/0.9212, allocations: 29.77 kB / 1.097 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.3e-05/0.9213, allocations: 30.5 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.9213, allocations: 2.016 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.9213, allocations: 0 / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.9213, allocations: 1.922 kB / 1.098 GB, free: 15.57 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003192/0.9217, allocations: 292.6 kB / 1.098 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.9217, allocations: 4 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001046/0.9218, allocations: 15.27 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.9218, allocations: 1.125 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.517e-05/0.9218, allocations: 7.562 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.902e-06/0.9218, allocations: 5.406 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.9219, allocations: 0.9688 kB / 1.098 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008442/0.9227, allocations: 474.5 kB / 1.098 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.545e-05/0.9228, allocations: 96.31 kB / 1.098 GB, free: 15 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.76e-05/0.9228, allocations: 8.953 kB / 1.098 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.9229, allocations: 10.73 kB / 1.098 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.451e-05/0.923, allocations: 27.98 kB / 1.098 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.577e-05/0.9231, allocations: 5.797 kB / 1.098 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002303/0.9233, allocations: 203.8 kB / 1.099 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9233, allocations: 0 / 1.099 GB, free: 14.88 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003455/0.9237, allocations: 64.03 kB / 1.099 GB, free: 14.86 MB / 0.8731 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.0002315/0.9239, allocations: 132.4 kB / 1.099 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0005702/0.9245, allocations: 292.2 kB / 1.099 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.9245, allocations: 1.594 kB / 1.099 GB, free: 14.62 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002669/0.9248, allocations: 181.3 kB / 1.099 GB, free: 14.52 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.9251, allocations: 40.61 kB / 1.099 GB, free: 14.5 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.9262, allocations: 0.5005 MB / 1.1 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003288/0.9266, allocations: 0.7543 MB / 1.101 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.858e-05/0.9266, allocations: 18.34 kB / 1.101 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of SimCode: time 3.81e-07/0.9267, allocations: 1.219 kB / 1.101 GB, free: 13.5 MB / 0.8731 GB Notification: Performance of Templates: time 0.006914/0.9336, allocations: 3.013 MB / 1.103 GB, free: 13.16 MB / 0.8731 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/jenkins1/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