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.008952/0.008952, allocations: 102.2 kB / 15.73 MB, free: 6.469 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.001669/0.001669, allocations: 193.9 kB / 16.67 MB, free: 6.379 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.504/1.504, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.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.477/2.477, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 70.77 kB / 0.9508 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3226/0.3239, allocations: 140.4 MB / 1.088 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor): time 0.00359/0.3275, allocations: 1.953 MB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001318/0.3289, allocations: 0.7051 MB / 1.091 GB, free: 14.84 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.329, allocations: 4 kB / 1.091 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0002794/0.3293, allocations: 83.66 kB / 1.091 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.3294, allocations: 95.55 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006419/0.3301, allocations: 187.4 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003326/0.3304, allocations: 263.4 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.3306, allocations: 73.58 kB / 1.091 GB, free: 14.15 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001647/0.3308, allocations: 119.6 kB / 1.091 GB, free: 14.03 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/0.331, allocations: 151.5 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.131e-05/0.3311, allocations: 20 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000157/0.3312, allocations: 99.92 kB / 1.092 GB, free: 13.77 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.485e-05/0.3313, allocations: 59.77 kB / 1.092 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001147/0.3315, allocations: 99.42 kB / 1.092 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003853/0.3318, allocations: 315 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.3319, allocations: 0 / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3319, allocations: 0 / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.3319, allocations: 0 / 1.092 GB, free: 13.3 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.0008569/0.3327, allocations: 0.578 MB / 1.093 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3328, allocations: 12.03 kB / 1.093 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.126e-05/0.3329, allocations: 28.56 kB / 1.093 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004971/0.3334, allocations: 306.9 kB / 1.093 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.3334, allocations: 20.38 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.483e-05/0.3335, allocations: 12.38 kB / 1.093 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004111/0.3339, allocations: 227.8 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.3339, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.3339, allocations: 8 kB / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.3339, allocations: 0 / 1.093 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002442/0.3342, allocations: 140.3 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008178/0.335, allocations: 0.6769 MB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.3354, allocations: 174.4 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.3355, allocations: 96.95 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.375e-05/0.3356, allocations: 3.938 kB / 1.094 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002723/0.3358, allocations: 181 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.753e-06/0.3358, allocations: 4 kB / 1.094 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0006715/0.3365, allocations: 366.9 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.552e-05/0.3366, allocations: 136.5 kB / 1.095 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002596/0.3369, allocations: 278.6 kB / 1.095 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.3369, allocations: 33.7 kB / 1.095 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.337, allocations: 152.3 kB / 1.095 GB, free: 9.648 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.697e-05/0.3371, allocations: 43.44 kB / 1.095 GB, free: 9.605 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.399e-05/0.3371, allocations: 49.61 kB / 1.095 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001259/0.3373, allocations: 338.8 kB / 1.096 GB, free: 9.211 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.3374, allocations: 91.83 kB / 1.096 GB, free: 9.121 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/0.3376, allocations: 125.1 kB / 1.096 GB, free: 8.98 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003189/0.338, allocations: 240.1 kB / 1.096 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.338, allocations: 0 / 1.096 GB, free: 8.723 MB / 0.8575 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004714/0.3384, allocations: 339 kB / 1.096 GB, free: 8.379 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.312e-05/0.3385, allocations: 41.72 kB / 1.097 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.3385, allocations: 0 / 1.097 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.3385, allocations: 0 / 1.097 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.3387, allocations: 27.92 kB / 1.097 GB, free: 8.305 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.3387, allocations: 0 / 1.097 GB, free: 8.305 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.3388, allocations: 27.83 kB / 1.097 GB, free: 8.277 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.3388, allocations: 4 kB / 1.097 GB, free: 8.273 MB / 0.8575 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.0001729/0.339, allocations: 192.9 kB / 1.097 GB, free: 8.07 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.635e-05/0.339, allocations: 27.7 kB / 1.097 GB, free: 8.043 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.431e-05/0.3391, allocations: 29.84 kB / 1.097 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3391, allocations: 0 / 1.097 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.3391, allocations: 0 / 1.097 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3391, allocations: 3.984 kB / 1.097 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.3394, allocations: 293.2 kB / 1.097 GB, free: 7.676 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3394, allocations: 3.938 kB / 1.097 GB, free: 7.672 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.876e-05/0.3395, allocations: 15.98 kB / 1.097 GB, free: 7.656 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.3395, allocations: 4 kB / 1.097 GB, free: 7.652 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.201e-05/0.3395, allocations: 11.98 kB / 1.097 GB, free: 7.641 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.135e-06/0.3395, allocations: 4.094 kB / 1.097 GB, free: 7.637 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3395, allocations: 7.938 kB / 1.097 GB, free: 7.629 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006772/0.3402, allocations: 460.1 kB / 1.098 GB, free: 7.156 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.997e-05/0.3403, allocations: 104.8 kB / 1.098 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.3404, allocations: 8 kB / 1.098 GB, free: 7.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.797e-05/0.3405, allocations: 16.05 kB / 1.098 GB, free: 7.012 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.459e-05/0.3405, allocations: 23.97 kB / 1.098 GB, free: 6.988 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.14e-05/0.3406, allocations: 4 kB / 1.098 GB, free: 6.984 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001775/0.3408, allocations: 205.9 kB / 1.098 GB, free: 6.785 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3408, allocations: 0 / 1.098 GB, free: 6.785 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002792/0.341, allocations: 55.91 kB / 1.098 GB, free: 6.73 MB / 0.8575 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.0002217/0.3413, allocations: 143.3 kB / 1.098 GB, free: 6.582 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004827/0.3418, allocations: 283.2 kB / 1.098 GB, free: 6.293 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3418, allocations: 0 / 1.098 GB, free: 6.293 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002352/0.342, allocations: 191.3 kB / 1.099 GB, free: 6.094 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.3423, allocations: 32.53 kB / 1.099 GB, free: 6.062 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009878/0.3433, allocations: 474.8 kB / 1.099 GB, free: 5.57 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.3437, allocations: 0.7553 MB / 1.1 GB, free: 4.789 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.254e-05/0.3438, allocations: 17.55 kB / 1.1 GB, free: 4.77 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.351e-05/0.3438, allocations: 23.38 kB / 1.1 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of SimCode: time 2.01e-07/0.3438, allocations: 0 / 1.1 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of Templates: time 0.00648/0.3503, allocations: 2.923 MB / 1.103 GB, free: 1.844 MB / 0.8575 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/jenkins/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