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.447/2.447, allocations: 390.3 MB / 405.3 MB, free: 13.46 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.001195/0.001195, allocations: 177 kB / 498.1 MB, free: 5.691 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.902/1.902, allocations: 223.2 MB / 0.7949 GB, free: 17.93 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009817/0.0009823, allocations: 102.4 kB / 0.9346 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004328/0.0004331, allocations: 8.219 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4014/0.4019, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2721/0.6741, allocations: 152.3 MB / 1.372 GB, free: 9.723 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004363/0.6746, allocations: 95.88 kB / 1.372 GB, free: 9.629 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01927/0.6939, allocations: 5.897 MB / 1.377 GB, free: 3.723 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.976e-06/0.694, allocations: 0 / 1.377 GB, free: 3.723 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.323e-05/0.6941, allocations: 4 kB / 1.377 GB, free: 3.719 MB / 0.8698 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.001055/0.6951, allocations: 0.5973 MB / 1.378 GB, free: 3.066 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.819e-05/0.6952, allocations: 12.03 kB / 1.378 GB, free: 3.055 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.6953, allocations: 35.58 kB / 1.378 GB, free: 3.02 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000538/0.6959, allocations: 285.6 kB / 1.378 GB, free: 2.699 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.139e-05/0.6959, allocations: 8 kB / 1.378 GB, free: 2.691 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.314e-05/0.696, allocations: 16 kB / 1.378 GB, free: 2.676 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005316/0.6965, allocations: 268.1 kB / 1.379 GB, free: 2.387 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.612e-05/0.6965, allocations: 0 / 1.379 GB, free: 2.387 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.956e-05/0.6966, allocations: 7.938 kB / 1.379 GB, free: 2.379 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.6966, allocations: 4 kB / 1.379 GB, free: 2.375 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003351/0.6969, allocations: 156.4 kB / 1.379 GB, free: 2.223 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.698, allocations: 0.7393 MB / 1.38 GB, free: 1.426 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005035/0.6985, allocations: 214.5 kB / 1.38 GB, free: 1.207 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.789e-05/0.6986, allocations: 144 / 1.38 GB, free: 1.207 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003917/0.6989, allocations: 224.1 kB / 1.38 GB, free: 0.9727 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.699, allocations: 0 / 1.38 GB, free: 0.9727 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15): time 0.001075/0.7, allocations: 0.5527 MB / 1.381 GB, free: 400 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.7002, allocations: 140.5 kB / 1.381 GB, free: 228 kB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002777/0.7005, allocations: 249.8 kB / 1.381 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.7005, allocations: 33.7 kB / 1.381 GB, free: 15.93 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.7006, allocations: 156.2 kB / 1.381 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.672e-05/0.7007, allocations: 43.45 kB / 1.381 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.385e-05/0.7007, allocations: 0 / 1.381 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.7009, allocations: 346.7 kB / 1.381 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002367/0.7011, allocations: 112.1 kB / 1.382 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002551/0.7014, allocations: 165.5 kB / 1.382 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002344/0.7016, allocations: 139.6 kB / 1.382 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.7016, allocations: 0 / 1.382 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000694/0.7023, allocations: 422.4 kB / 1.382 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.42e-05/0.7024, allocations: 33.69 kB / 1.382 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.7024, allocations: 4 kB / 1.382 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.7024, allocations: 0 / 1.382 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.7026, allocations: 27.98 kB / 1.382 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.7026, allocations: 0 / 1.382 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.7028, allocations: 47.91 kB / 1.382 GB, free: 14.41 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.447e-05/0.7028, allocations: 12 kB / 1.382 GB, free: 14.4 MB / 0.8855 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001944/0.703, allocations: 191.5 kB / 1.383 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.629e-05/0.7031, allocations: 27.67 kB / 1.383 GB, free: 14.17 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.751e-05/0.7032, allocations: 29.92 kB / 1.383 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.7032, allocations: 11.94 kB / 1.383 GB, free: 14.13 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.7032, allocations: 0 / 1.383 GB, free: 14.13 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.7032, allocations: 0 / 1.383 GB, free: 14.13 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002861/0.7035, allocations: 301.4 kB / 1.383 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.7035, allocations: 7.984 kB / 1.383 GB, free: 13.78 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.7036, allocations: 23.94 kB / 1.383 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.7036, allocations: 0 / 1.383 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.556e-05/0.7037, allocations: 8 kB / 1.383 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.7037, allocations: 3.938 kB / 1.383 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.7037, allocations: 0 / 1.383 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.7048, allocations: 0.5823 MB / 1.384 GB, free: 13.14 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 6.184e-05/0.7048, allocations: 92.86 kB / 1.384 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.552e-05/0.7049, allocations: 11.95 kB / 1.384 GB, free: 13.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.705, allocations: 35.97 kB / 1.384 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.685e-05/0.7051, allocations: 35.95 kB / 1.384 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-05/0.7052, allocations: 11.98 kB / 1.384 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001951/0.7054, allocations: 201.9 kB / 1.384 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7054, allocations: 0 / 1.384 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003297/0.7057, allocations: 64.06 kB / 1.384 GB, free: 12.68 MB / 0.8855 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) * 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 (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.0002375/0.706, allocations: 138.9 kB / 1.384 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005585/0.7065, allocations: 323.2 kB / 1.384 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.7065, allocations: 0 / 1.384 GB, free: 12.2 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002844/0.7068, allocations: 203.5 kB / 1.385 GB, free: 11.99 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.7071, allocations: 26.8 kB / 1.385 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001048/0.7082, allocations: 0.5223 MB / 1.385 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.7085, allocations: 0.7597 MB / 1.386 GB, free: 10.63 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.913e-05/0.7086, allocations: 13.42 kB / 1.386 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.865e-05/0.7087, allocations: 15.44 kB / 1.386 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of SimCode: time 2.21e-07/0.7087, allocations: 0 / 1.386 GB, free: 10.6 MB / 0.8855 GB Notification: Performance of Templates: time 0.005976/0.7147, allocations: 2.514 MB / 1.388 GB, free: 8.109 MB / 0.8855 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