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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.303/2.303, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001268/0.001268, allocations: 178.7 kB / 498.1 MB, free: 5.75 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.601/1.601, allocations: 223.2 MB / 0.7948 GB, free: 17.84 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.0009348/0.0009347, allocations: 99.27 kB / 0.9346 GB, free: 6.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004052/0.0004052, allocations: 12 kB / 1.084 GB, free: 221 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3509, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2128/0.5638, allocations: 152.4 MB / 1.372 GB, free: 9.539 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004189/0.5643, allocations: 83.95 kB / 1.372 GB, free: 9.457 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01901/0.5833, allocations: 5.904 MB / 1.378 GB, free: 3.547 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.886e-06/0.5834, allocations: 0 / 1.378 GB, free: 3.547 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.229e-05/0.5834, allocations: 4 kB / 1.378 GB, free: 3.543 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.001215/0.5847, allocations: 0.5934 MB / 1.378 GB, free: 2.895 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/0.5847, allocations: 8.031 kB / 1.378 GB, free: 2.887 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001251/0.5849, allocations: 50.55 kB / 1.378 GB, free: 2.828 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001374/0.585, allocations: 35.58 kB / 1.378 GB, free: 2.793 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005954/0.5856, allocations: 289.6 kB / 1.379 GB, free: 2.469 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/0.5857, allocations: 16 kB / 1.379 GB, free: 2.453 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.361e-05/0.5857, allocations: 12 kB / 1.379 GB, free: 2.441 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005585/0.5863, allocations: 264 kB / 1.379 GB, free: 2.156 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.5863, allocations: 7.984 kB / 1.379 GB, free: 2.148 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.5864, allocations: 8 kB / 1.379 GB, free: 2.141 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.5864, allocations: 4 kB / 1.379 GB, free: 2.137 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003557/0.5867, allocations: 156.4 kB / 1.379 GB, free: 1.984 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/0.588, allocations: 0.7393 MB / 1.38 GB, free: 1.188 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005192/0.5885, allocations: 218.4 kB / 1.38 GB, free: 0.9648 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.5886, allocations: 4 kB / 1.38 GB, free: 0.9609 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003968/0.589, allocations: 205 kB / 1.38 GB, free: 0.7422 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=15): time 2.114e-06/0.589, allocations: 0 / 1.38 GB, free: 0.7422 MB / 0.8698 GB Notification: Performance of matching and sorting (n=15): time 0.001155/0.5901, allocations: 0.5591 MB / 1.381 GB, free: 160 kB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.5903, allocations: 140.4 kB / 1.381 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003191/0.5906, allocations: 245.9 kB / 1.381 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.803e-05/0.5906, allocations: 29.7 kB / 1.381 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.5908, allocations: 160.2 kB / 1.381 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.455e-05/0.5908, allocations: 43.39 kB / 1.381 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.505e-05/0.5909, allocations: 4 kB / 1.381 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.591, allocations: 342.8 kB / 1.382 GB, free: 15.15 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/0.5913, allocations: 116.1 kB / 1.382 GB, free: 15.04 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002583/0.5915, allocations: 162.6 kB / 1.382 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002476/0.5918, allocations: 137.6 kB / 1.382 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.5918, allocations: 8.031 kB / 1.382 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007672/0.5926, allocations: 411.8 kB / 1.382 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.745e-05/0.5927, allocations: 43.03 kB / 1.382 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.5927, allocations: 4 kB / 1.382 GB, free: 14.25 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.321e-05/0.5927, allocations: 4 kB / 1.382 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001557/0.5929, allocations: 27.92 kB / 1.382 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.5929, allocations: 4 kB / 1.382 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001943/0.5931, allocations: 35.97 kB / 1.382 GB, free: 14.18 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.485e-05/0.5931, allocations: 12 kB / 1.382 GB, free: 14.16 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.0002287/0.5934, allocations: 193.7 kB / 1.383 GB, free: 13.96 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.562e-05/0.5934, allocations: 23.72 kB / 1.383 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.466e-05/0.5935, allocations: 33.83 kB / 1.383 GB, free: 13.91 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.5935, allocations: 0 / 1.383 GB, free: 13.91 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.5935, allocations: 0 / 1.383 GB, free: 13.91 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.5935, allocations: 3.984 kB / 1.383 GB, free: 13.9 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003032/0.5938, allocations: 305.3 kB / 1.383 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.5939, allocations: 3.953 kB / 1.383 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.594, allocations: 24.02 kB / 1.383 GB, free: 13.53 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.594, allocations: 3.938 kB / 1.383 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.596e-05/0.594, allocations: 7.984 kB / 1.383 GB, free: 13.52 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.5941, allocations: 4 kB / 1.383 GB, free: 13.51 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.5941, allocations: 7.938 kB / 1.383 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.5952, allocations: 0.5823 MB / 1.384 GB, free: 12.9 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 8.172e-05/0.5953, allocations: 104.8 kB / 1.384 GB, free: 12.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.139e-05/0.5953, allocations: 8 kB / 1.384 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000155/0.5955, allocations: 27.97 kB / 1.384 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.284e-05/0.5956, allocations: 27.95 kB / 1.384 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.066e-05/0.5956, allocations: 12.06 kB / 1.384 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002096/0.5958, allocations: 205.9 kB / 1.384 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2e-07/0.5958, allocations: 0 / 1.384 GB, free: 12.5 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003784/0.5962, allocations: 63.97 kB / 1.384 GB, free: 12.44 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.001401/0.5976, allocations: 1.081 MB / 1.385 GB, free: 11.33 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005972/0.5983, allocations: 315.3 kB / 1.385 GB, free: 11.01 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.5983, allocations: 0 / 1.385 GB, free: 11.01 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002775/0.5986, allocations: 203.5 kB / 1.386 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000309/0.5989, allocations: 28.55 kB / 1.386 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003246/0.6021, allocations: 2.105 MB / 1.388 GB, free: 8.598 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.6025, allocations: 0.7597 MB / 1.388 GB, free: 7.812 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 9.639e-05/0.6026, allocations: 17.41 kB / 1.388 GB, free: 7.797 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.6027, allocations: 71.41 kB / 1.389 GB, free: 7.727 MB / 0.8855 GB Notification: Performance of SimCode: time 5.92e-07/0.6027, allocations: 0 / 1.389 GB, free: 7.727 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0215/0.6242, allocations: 4.909 MB / 1.393 GB, free: 2.965 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002221/0.6245, allocations: 179.8 kB / 1.393 GB, free: 2.723 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.357/2.981, allocations: 7.875 kB / 1.393 GB, free: 2.715 MB / 0.8855 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat does not exist to compare? outputFormat=mat