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.289/2.289, allocations: 387.1 MB / 399.7 MB, free: 9.449 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.001164/0.001164, allocations: 177 kB / 492.3 MB, free: 0.5977 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.819/1.819, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.00109/0.00109, allocations: 91.89 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.482e-05/3.488e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2924, allocations: 142.3 MB / 1.212 GB, free: 38.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.045/1.338, allocations: 152.3 MB / 1.361 GB, free: 19.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002471/1.338, allocations: 88.59 kB / 1.361 GB, free: 19.1 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.018/1.356, allocations: 5.885 MB / 1.367 GB, free: 34.43 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.224e-06/1.356, allocations: 0 / 1.367 GB, free: 34.43 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.032e-05/1.356, allocations: 3.812 kB / 1.367 GB, free: 34.43 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.001188/1.357, allocations: 0.5457 MB / 1.368 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.896e-05/1.357, allocations: 11.62 kB / 1.368 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001038/1.357, allocations: 45.97 kB / 1.368 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/1.358, allocations: 27.09 kB / 1.368 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004889/1.358, allocations: 297.6 kB / 1.368 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/1.358, allocations: 12.25 kB / 1.368 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.432e-05/1.358, allocations: 15.31 kB / 1.368 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004212/1.359, allocations: 237.5 kB / 1.368 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/1.359, allocations: 0 / 1.368 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.601e-05/1.359, allocations: 11.38 kB / 1.368 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/1.359, allocations: 3.812 kB / 1.368 GB, free: 33.62 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002998/1.359, allocations: 142 kB / 1.368 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001135/1.36, allocations: 0.7402 MB / 1.369 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002477/1.36, allocations: 157.9 kB / 1.369 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000146/1.361, allocations: 112.8 kB / 1.369 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/1.361, allocations: 3.844 kB / 1.369 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002684/1.361, allocations: 185.5 kB / 1.37 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 2.254e-06/1.361, allocations: 0 / 1.37 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0006111/1.362, allocations: 338.9 kB / 1.37 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/1.362, allocations: 132.4 kB / 1.37 GB, free: 32.78 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002689/1.362, allocations: 249.5 kB / 1.37 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.803e-05/1.362, allocations: 28.83 kB / 1.37 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.000118/1.362, allocations: 161.9 kB / 1.37 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.231e-05/1.362, allocations: 40.81 kB / 1.37 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.243e-05/1.362, allocations: 0 / 1.37 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001351/1.362, allocations: 342.9 kB / 1.371 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/1.362, allocations: 97.78 kB / 1.371 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/1.363, allocations: 137 kB / 1.371 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001528/1.363, allocations: 125.9 kB / 1.371 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/1.363, allocations: 0 / 1.371 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005025/1.363, allocations: 371.2 kB / 1.371 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.933e-05/1.363, allocations: 36.09 kB / 1.371 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/1.363, allocations: 0 / 1.371 GB, free: 32 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/1.363, allocations: 7.75 kB / 1.371 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/1.363, allocations: 29.86 kB / 1.372 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/1.363, allocations: 3.875 kB / 1.372 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/1.364, allocations: 37.17 kB / 1.372 GB, free: 31.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.811e-05/1.364, allocations: 17.64 kB / 1.372 GB, free: 31.98 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.0001215/1.364, allocations: 165.4 kB / 1.372 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.728e-05/1.364, allocations: 27.27 kB / 1.372 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.398e-05/1.364, allocations: 29.84 kB / 1.372 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/1.364, allocations: 3.938 kB / 1.372 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/1.364, allocations: 0 / 1.372 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/1.364, allocations: 2.484 kB / 1.372 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/1.364, allocations: 292.6 kB / 1.372 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/1.364, allocations: 0 / 1.372 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/1.364, allocations: 30.3 kB / 1.372 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/1.364, allocations: 0 / 1.372 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/1.364, allocations: 9.859 kB / 1.372 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/1.364, allocations: 4 kB / 1.372 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/1.364, allocations: 0 / 1.372 GB, free: 31.61 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007149/1.365, allocations: 0.5273 MB / 1.373 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.893e-05/1.365, allocations: 92.73 kB / 1.373 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.775e-05/1.365, allocations: 19.05 kB / 1.373 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/1.365, allocations: 26.56 kB / 1.373 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.113e-05/1.366, allocations: 31.23 kB / 1.373 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/1.366, allocations: 10.78 kB / 1.373 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001716/1.366, allocations: 203.5 kB / 1.373 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.7e-07/1.366, allocations: 4 kB / 1.373 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003181/1.366, allocations: 65.34 kB / 1.373 GB, free: 31.29 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.0008874/1.367, allocations: 1.003 MB / 1.374 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003288/1.367, allocations: 281.8 kB / 1.374 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/1.367, allocations: 0 / 1.374 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001551/1.368, allocations: 176.9 kB / 1.374 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/1.368, allocations: 26.27 kB / 1.374 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/1.369, allocations: 445.5 kB / 1.375 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004472/1.369, allocations: 0.7535 MB / 1.376 GB, free: 29.62 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.853e-05/1.369, allocations: 22.72 kB / 1.376 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/1.369, allocations: 69.72 kB / 1.376 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of SimCode: time 4.6e-07/1.369, allocations: 0 / 1.376 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.018/1.387, allocations: 4.878 MB / 1.381 GB, free: 29.22 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002105/1.388, allocations: 166.6 kB / 1.381 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.038/3.426, allocations: 0 / 1.381 GB, free: 28.98 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