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.262/2.262, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.00117/0.00117, allocations: 180.8 kB / 487.4 MB, free: 5.031 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.419/1.419, allocations: 221.5 MB / 0.7824 GB, free: 0.9844 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.0008962/0.0008961, allocations: 95.83 kB / 0.9219 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.919e-05/1.921e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2493/0.2494, allocations: 142.4 MB / 1.206 GB, free: 43.88 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.201/1.45, allocations: 151.6 MB / 1.354 GB, free: 18.42 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/1.45, allocations: 86.12 kB / 1.354 GB, free: 18.41 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01685/1.467, allocations: 5.846 MB / 1.36 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.283e-06/1.467, allocations: 4 kB / 1.36 GB, free: 33.75 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.659e-05/1.467, allocations: 3.812 kB / 1.36 GB, free: 33.75 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.0008049/1.468, allocations: 0.5534 MB / 1.36 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/1.468, allocations: 11.59 kB / 1.36 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.471e-05/1.468, allocations: 26.94 kB / 1.36 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/1.469, allocations: 292 kB / 1.361 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.884e-05/1.469, allocations: 7.531 kB / 1.361 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/1.469, allocations: 11.66 kB / 1.361 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000229/1.469, allocations: 128.4 kB / 1.361 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003091/1.469, allocations: 221.1 kB / 1.361 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/1.469, allocations: 0 / 1.361 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/1.469, allocations: 3.844 kB / 1.361 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/1.469, allocations: 3.844 kB / 1.361 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00091/1.47, allocations: 0.7019 MB / 1.362 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002141/1.471, allocations: 149.3 kB / 1.362 GB, free: 32.51 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/1.471, allocations: 103.1 kB / 1.362 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.639e-05/1.471, allocations: 0 / 1.362 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002026/1.471, allocations: 188.5 kB / 1.362 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.172e-06/1.471, allocations: 0 / 1.362 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0005479/1.471, allocations: 304.3 kB / 1.363 GB, free: 32.37 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/1.472, allocations: 132.4 kB / 1.363 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002035/1.472, allocations: 223 kB / 1.363 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/1.472, allocations: 33.45 kB / 1.363 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.071e-05/1.472, allocations: 152.8 kB / 1.363 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.456e-05/1.472, allocations: 45.31 kB / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.237e-05/1.472, allocations: 0 / 1.363 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001312/1.472, allocations: 338.3 kB / 1.363 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/1.472, allocations: 91.31 kB / 1.364 GB, free: 31.63 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/1.472, allocations: 138.3 kB / 1.364 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/1.472, allocations: 90.39 kB / 1.364 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/1.472, allocations: 0 / 1.364 GB, free: 31.58 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.000419/1.473, allocations: 331.8 kB / 1.364 GB, free: 31.52 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/1.473, allocations: 39.69 kB / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/1.473, allocations: 0 / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/1.473, allocations: 3.844 kB / 1.364 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/1.473, allocations: 34.34 kB / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/1.473, allocations: 8.078 kB / 1.364 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/1.473, allocations: 37.3 kB / 1.364 GB, free: 31.47 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.215e-05/1.473, allocations: 14.39 kB / 1.364 GB, free: 31.47 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.0001341/1.473, allocations: 152.7 kB / 1.364 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004525/1.474, allocations: 318 kB / 1.365 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/1.474, allocations: 31.22 kB / 1.365 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.269e-05/1.474, allocations: 26.84 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/1.474, allocations: 3.938 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/1.474, allocations: 0 / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/1.474, allocations: 7.031 kB / 1.365 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000186/1.474, allocations: 264.7 kB / 1.365 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/1.474, allocations: 0 / 1.365 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/1.474, allocations: 25.97 kB / 1.365 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/1.474, allocations: 3.953 kB / 1.365 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/1.474, allocations: 9.906 kB / 1.365 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/1.474, allocations: 0 / 1.365 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.474, allocations: 0 / 1.365 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006133/1.475, allocations: 483.7 kB / 1.365 GB, free: 31 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.922e-05/1.475, allocations: 99.38 kB / 1.366 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.527e-05/1.475, allocations: 11.7 kB / 1.366 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/1.475, allocations: 29.02 kB / 1.366 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.206e-05/1.475, allocations: 28.84 kB / 1.366 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/1.475, allocations: 11.06 kB / 1.366 GB, free: 30.88 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001465/1.476, allocations: 182.1 kB / 1.366 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.476, allocations: 0 / 1.366 GB, free: 30.8 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000288/1.476, allocations: 57.44 kB / 1.366 GB, free: 30.79 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.0008292/1.477, allocations: 0.9708 MB / 1.367 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002839/1.477, allocations: 257.8 kB / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/1.477, allocations: 0 / 1.367 GB, free: 30.11 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001344/1.477, allocations: 176.6 kB / 1.367 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/1.477, allocations: 29.31 kB / 1.367 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009033/1.478, allocations: 417.8 kB / 1.368 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003268/1.479, allocations: 0.7639 MB / 1.368 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.819e-05/1.479, allocations: 15.8 kB / 1.368 GB, free: 29.15 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.954e-05/1.479, allocations: 70.88 kB / 1.368 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/1.479, allocations: 0 / 1.368 GB, free: 29.14 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/1.503, allocations: 4.358 MB / 1.373 GB, free: 28.87 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002331/1.503, allocations: 135.2 kB / 1.373 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.031/3.534, allocations: 6.812 kB / 1.373 GB, free: 28.68 MB / 0.8386 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