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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.289/2.289, allocations: 387.4 MB / 394.9 MB, free: 13.25 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009791/0.0009791, allocations: 180.6 kB / 487.4 MB, free: 4.941 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.382/1.382, allocations: 221.5 MB / 0.7824 GB, free: 1.016 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008484/0.0008486, allocations: 99.72 kB / 0.9219 GB, free: 2.254 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.293e-05/1.296e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2307, allocations: 142.4 MB / 1.206 GB, free: 44.01 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7722/1.003, allocations: 151.6 MB / 1.354 GB, free: 18.48 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/1.003, allocations: 82.91 kB / 1.354 GB, free: 18.48 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01634/1.02, allocations: 5.849 MB / 1.36 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.644e-06/1.02, allocations: 0.75 kB / 1.36 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.634e-05/1.02, allocations: 7.844 kB / 1.36 GB, free: 33.81 MB / 0.8386 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.0007177/1.02, allocations: 0.5545 MB / 1.36 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/1.02, allocations: 7.688 kB / 1.36 GB, free: 33.36 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.676e-05/1.021, allocations: 27.25 kB / 1.36 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003697/1.021, allocations: 288.2 kB / 1.361 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/1.021, allocations: 9.016 kB / 1.361 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.006e-05/1.021, allocations: 7.688 kB / 1.361 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000214/1.021, allocations: 132.3 kB / 1.361 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/1.021, allocations: 227.6 kB / 1.361 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/1.022, allocations: 0 / 1.361 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.362e-05/1.022, allocations: 3.875 kB / 1.361 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/1.022, allocations: 3.812 kB / 1.361 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007998/1.022, allocations: 0.7015 MB / 1.362 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/1.023, allocations: 146.4 kB / 1.362 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/1.023, allocations: 101.6 kB / 1.362 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/1.023, allocations: 0 / 1.362 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002084/1.023, allocations: 186.4 kB / 1.362 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/1.023, allocations: 0 / 1.362 GB, free: 32.48 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0005189/1.023, allocations: 300.1 kB / 1.362 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/1.024, allocations: 132.5 kB / 1.363 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/1.024, allocations: 228.7 kB / 1.363 GB, free: 32.17 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/1.024, allocations: 29.48 kB / 1.363 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.565e-05/1.024, allocations: 155.9 kB / 1.363 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.15e-05/1.024, allocations: 39 kB / 1.363 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.362e-05/1.024, allocations: 3.875 kB / 1.363 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001098/1.024, allocations: 341.3 kB / 1.363 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/1.024, allocations: 92.81 kB / 1.363 GB, free: 31.69 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/1.024, allocations: 135.4 kB / 1.364 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/1.024, allocations: 89.34 kB / 1.364 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/1.024, allocations: 3.969 kB / 1.364 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004061/1.025, allocations: 330.7 kB / 1.364 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.184e-05/1.025, allocations: 37.89 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/1.025, allocations: 0 / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/1.025, allocations: 3.844 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/1.025, allocations: 33.39 kB / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/1.025, allocations: 0 / 1.364 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/1.025, allocations: 41.95 kB / 1.364 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.042e-05/1.025, allocations: 14.75 kB / 1.364 GB, free: 31.54 MB / 0.8386 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 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,mot.int.local_reset) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001148/1.025, allocations: 146.5 kB / 1.364 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.502e-05/1.025, allocations: 30.89 kB / 1.364 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.324e-05/1.025, allocations: 28.17 kB / 1.364 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/1.026, allocations: 11.8 kB / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/1.026, allocations: 0 / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/1.026, allocations: 0 / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/1.026, allocations: 259.3 kB / 1.365 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/1.026, allocations: 0 / 1.365 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/1.026, allocations: 33.72 kB / 1.365 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/1.026, allocations: 96 / 1.365 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.11e-05/1.026, allocations: 7.781 kB / 1.365 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/1.026, allocations: 7.953 kB / 1.365 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/1.026, allocations: 0 / 1.365 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000595/1.027, allocations: 481.7 kB / 1.365 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.785e-05/1.027, allocations: 96.52 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.343e-05/1.027, allocations: 7.406 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001525/1.027, allocations: 29.67 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.86e-05/1.027, allocations: 35.22 kB / 1.365 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/1.027, allocations: 14.06 kB / 1.365 GB, free: 30.99 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001324/1.027, allocations: 179.7 kB / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.027, allocations: 0 / 1.365 GB, free: 30.91 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002976/1.027, allocations: 61.28 kB / 1.365 GB, free: 30.9 MB / 0.8386 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 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000207/1.028, allocations: 148 kB / 1.366 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002805/1.028, allocations: 260.7 kB / 1.366 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/1.028, allocations: 0 / 1.366 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001241/1.028, allocations: 171.1 kB / 1.366 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002437/1.028, allocations: 27.06 kB / 1.366 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007137/1.029, allocations: 348.6 kB / 1.366 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002861/1.029, allocations: 0.7611 MB / 1.367 GB, free: 29.84 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.442e-05/1.029, allocations: 11.84 kB / 1.367 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.274e-05/1.029, allocations: 18.31 kB / 1.367 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of SimCode: time 2.71e-07/1.029, allocations: 0 / 1.367 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of Templates: time 0.004694/1.034, allocations: 2.345 MB / 1.369 GB, free: 29.64 MB / 0.8386 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","../files/Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches