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.18/2.18, allocations: 387.1 MB / 399.7 MB, free: 9.508 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.001069/0.001069, allocations: 176.3 kB / 492.3 MB, free: 0.6289 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.689/1.689, allocations: 221.3 MB / 0.7871 GB, free: 12.92 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.0008923/0.0008923, allocations: 99.03 kB / 0.9267 GB, free: 13.99 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.801e-05/3.802e-05, allocations: 3.188 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2647, allocations: 142.3 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8996/1.164, allocations: 152.3 MB / 1.361 GB, free: 19.17 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/1.165, allocations: 82.23 kB / 1.361 GB, free: 19.17 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01594/1.181, allocations: 5.878 MB / 1.367 GB, free: 34.5 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.684e-06/1.181, allocations: 0 / 1.367 GB, free: 34.5 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.215e-05/1.181, allocations: 3.844 kB / 1.367 GB, free: 34.5 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.0007096/1.181, allocations: 0.5548 MB / 1.367 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/1.181, allocations: 7.688 kB / 1.367 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.682e-05/1.181, allocations: 31.12 kB / 1.368 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/1.182, allocations: 292.9 kB / 1.368 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.198e-05/1.182, allocations: 13.97 kB / 1.368 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.758e-05/1.182, allocations: 17.44 kB / 1.368 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003314/1.182, allocations: 240.3 kB / 1.368 GB, free: 33.72 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/1.182, allocations: 3.984 kB / 1.368 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.228e-05/1.182, allocations: 6.906 kB / 1.368 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/1.182, allocations: 3.875 kB / 1.368 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000191/1.182, allocations: 141.4 kB / 1.368 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008151/1.183, allocations: 0.7381 MB / 1.369 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001979/1.184, allocations: 159.5 kB / 1.369 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001198/1.184, allocations: 102.5 kB / 1.369 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/1.184, allocations: 3.562 kB / 1.369 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001994/1.184, allocations: 189.8 kB / 1.369 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/1.184, allocations: 4 kB / 1.369 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0004854/1.184, allocations: 340.6 kB / 1.37 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.435e-05/1.184, allocations: 135.7 kB / 1.37 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001987/1.185, allocations: 242.6 kB / 1.37 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.313e-05/1.185, allocations: 32.8 kB / 1.37 GB, free: 32.75 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.959e-05/1.185, allocations: 156.5 kB / 1.37 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/1.185, allocations: 41.06 kB / 1.37 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.263e-05/1.185, allocations: 7.156 kB / 1.37 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001074/1.185, allocations: 345.8 kB / 1.371 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/1.185, allocations: 93.31 kB / 1.371 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/1.185, allocations: 140.9 kB / 1.371 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001199/1.185, allocations: 120.4 kB / 1.371 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/1.185, allocations: 4.031 kB / 1.371 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004095/1.186, allocations: 367 kB / 1.371 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.755e-05/1.186, allocations: 36.64 kB / 1.371 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/1.186, allocations: 3.781 kB / 1.371 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/1.186, allocations: 0 / 1.371 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001395/1.186, allocations: 32.95 kB / 1.371 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/1.186, allocations: 0 / 1.371 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/1.186, allocations: 50.3 kB / 1.371 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.167e-05/1.186, allocations: 10.56 kB / 1.371 GB, free: 32.08 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.0001249/1.186, allocations: 150.4 kB / 1.372 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/1.186, allocations: 34.2 kB / 1.372 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.046e-05/1.186, allocations: 30.55 kB / 1.372 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/1.186, allocations: 3.812 kB / 1.372 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/1.186, allocations: 3.938 kB / 1.372 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/1.186, allocations: 0 / 1.372 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000192/1.187, allocations: 294.3 kB / 1.372 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/1.187, allocations: 2.625 kB / 1.372 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/1.187, allocations: 18.27 kB / 1.372 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/1.187, allocations: 7.828 kB / 1.372 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/1.187, allocations: 11.42 kB / 1.372 GB, free: 31.73 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/1.187, allocations: 6.297 kB / 1.372 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/1.187, allocations: 0 / 1.372 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006268/1.187, allocations: 0.5242 MB / 1.372 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.259e-05/1.188, allocations: 96.58 kB / 1.373 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.194e-05/1.188, allocations: 14.58 kB / 1.373 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001556/1.188, allocations: 39.23 kB / 1.373 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.63e-05/1.188, allocations: 23.5 kB / 1.373 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/1.188, allocations: 14.25 kB / 1.373 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001466/1.188, allocations: 199.9 kB / 1.373 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.188, allocations: 0 / 1.373 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002825/1.188, allocations: 64.44 kB / 1.373 GB, free: 31.4 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.0001895/1.188, allocations: 142.2 kB / 1.373 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002904/1.189, allocations: 279.8 kB / 1.373 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/1.189, allocations: 0 / 1.373 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001331/1.189, allocations: 173.4 kB / 1.373 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/1.189, allocations: 26.23 kB / 1.373 GB, free: 31.15 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007046/1.19, allocations: 364.5 kB / 1.374 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/1.19, allocations: 0.7568 MB / 1.375 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 9.543e-05/1.19, allocations: 19.44 kB / 1.375 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.339e-05/1.19, allocations: 17.75 kB / 1.375 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of SimCode: time 2.51e-07/1.19, allocations: 0 / 1.375 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of Templates: time 0.004957/1.195, allocations: 2.523 MB / 1.377 GB, free: 30.12 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