Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.605/2.605, allocations: 393.5 MB / 408.4 MB, free: 11.07 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.001336/0.001336, allocations: 176 kB / 0.4901 GB, free: 2.25 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.906/1.906, allocations: 223.1 MB / 0.7992 GB, free: 14.64 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.001167/0.001167, allocations: 94.94 kB / 0.9396 GB, free: 1.832 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003918/0.0003918, allocations: 12.58 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3909/0.3913, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.23/0.6214, allocations: 153.2 MB / 1.379 GB, free: 224 kB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/0.6218, allocations: 83.95 kB / 1.379 GB, free: 140 kB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.0182/0.64, allocations: 5.905 MB / 1.385 GB, free: 10.22 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.915e-06/0.6401, allocations: 0 / 1.385 GB, free: 10.22 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.422e-05/0.6401, allocations: 8 kB / 1.385 GB, free: 10.21 MB / 0.8855 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.001002/0.6411, allocations: 0.5857 MB / 1.385 GB, free: 9.57 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/0.6412, allocations: 12.56 kB / 1.385 GB, free: 9.559 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.41e-05/0.6413, allocations: 50.55 kB / 1.385 GB, free: 9.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.73e-05/0.6414, allocations: 31.67 kB / 1.385 GB, free: 9.469 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004837/0.6418, allocations: 289.4 kB / 1.386 GB, free: 9.145 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.6419, allocations: 12 kB / 1.386 GB, free: 9.133 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.877e-05/0.6419, allocations: 12 kB / 1.386 GB, free: 9.121 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004973/0.6424, allocations: 275.1 kB / 1.386 GB, free: 8.824 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.6425, allocations: 0 / 1.386 GB, free: 8.824 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/0.6425, allocations: 8 kB / 1.386 GB, free: 8.816 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.6425, allocations: 4 kB / 1.386 GB, free: 8.812 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003192/0.6428, allocations: 164.3 kB / 1.386 GB, free: 8.652 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001064/0.6439, allocations: 0.7355 MB / 1.387 GB, free: 7.859 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004945/0.6444, allocations: 218.6 kB / 1.387 GB, free: 7.637 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.6444, allocations: 8 kB / 1.387 GB, free: 7.629 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003863/0.6448, allocations: 197.1 kB / 1.387 GB, free: 7.418 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.6448, allocations: 3.938 kB / 1.387 GB, free: 7.414 MB / 0.8855 GB Notification: Performance of matching and sorting (n=15): time 0.001035/0.6459, allocations: 0.5566 MB / 1.388 GB, free: 6.828 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.631e-05/0.646, allocations: 132.5 kB / 1.388 GB, free: 6.668 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002839/0.6463, allocations: 257.8 kB / 1.388 GB, free: 6.41 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.631e-05/0.6463, allocations: 29.7 kB / 1.388 GB, free: 6.375 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.6465, allocations: 152.3 kB / 1.388 GB, free: 6.223 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.974e-05/0.6465, allocations: 43.36 kB / 1.388 GB, free: 6.18 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.521e-05/0.6465, allocations: 4 kB / 1.388 GB, free: 6.176 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001522/0.6467, allocations: 338.8 kB / 1.389 GB, free: 5.836 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002317/0.6469, allocations: 120.1 kB / 1.389 GB, free: 5.715 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002547/0.6472, allocations: 161.4 kB / 1.389 GB, free: 5.539 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/0.6475, allocations: 142.5 kB / 1.389 GB, free: 5.395 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.6475, allocations: 4 kB / 1.389 GB, free: 5.391 MB / 0.8855 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006894/0.6482, allocations: 407.5 kB / 1.389 GB, free: 4.98 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.073e-05/0.6482, allocations: 45.62 kB / 1.39 GB, free: 4.93 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.6482, allocations: 0 / 1.39 GB, free: 4.93 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.219e-05/0.6483, allocations: 4 kB / 1.39 GB, free: 4.926 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.6484, allocations: 28.02 kB / 1.39 GB, free: 4.898 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.6484, allocations: 12 kB / 1.39 GB, free: 4.887 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001778/0.6486, allocations: 39.81 kB / 1.39 GB, free: 4.848 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.6487, allocations: 12 kB / 1.39 GB, free: 4.836 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.0002285/0.6489, allocations: 199.4 kB / 1.39 GB, free: 4.625 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.185e-05/0.649, allocations: 23.72 kB / 1.39 GB, free: 4.602 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.843e-05/0.649, allocations: 33.83 kB / 1.39 GB, free: 4.566 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.6491, allocations: 0 / 1.39 GB, free: 4.566 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.6491, allocations: 0 / 1.39 GB, free: 4.566 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.6491, allocations: 0 / 1.39 GB, free: 4.566 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003195/0.6494, allocations: 301.4 kB / 1.39 GB, free: 4.223 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.6494, allocations: 3.953 kB / 1.39 GB, free: 4.219 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.6495, allocations: 23.98 kB / 1.39 GB, free: 4.195 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.6496, allocations: 4 kB / 1.39 GB, free: 4.191 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.6496, allocations: 7.984 kB / 1.39 GB, free: 4.184 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.6496, allocations: 0 / 1.39 GB, free: 4.184 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.6496, allocations: 4.094 kB / 1.39 GB, free: 4.18 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.6507, allocations: 0.5888 MB / 1.391 GB, free: 3.57 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 9.278e-05/0.6508, allocations: 100.8 kB / 1.391 GB, free: 3.453 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.116e-05/0.6508, allocations: 11.98 kB / 1.391 GB, free: 3.441 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.651, allocations: 28.05 kB / 1.391 GB, free: 3.414 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.248e-05/0.6511, allocations: 27.95 kB / 1.391 GB, free: 3.387 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.996e-05/0.6511, allocations: 15.98 kB / 1.391 GB, free: 3.371 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002037/0.6514, allocations: 198 kB / 1.391 GB, free: 3.176 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6514, allocations: 0 / 1.391 GB, free: 3.176 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003419/0.6517, allocations: 67.98 kB / 1.391 GB, free: 3.109 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.001436/0.6531, allocations: 1.079 MB / 1.392 GB, free: 1.996 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000581/0.6537, allocations: 315.5 kB / 1.393 GB, free: 1.676 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.6538, allocations: 0 / 1.393 GB, free: 1.676 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002889/0.6541, allocations: 195.3 kB / 1.393 GB, free: 1.473 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.6544, allocations: 33.39 kB / 1.393 GB, free: 1.441 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003189/0.6576, allocations: 2.116 MB / 1.395 GB, free: 15.26 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.658, allocations: 0.7614 MB / 1.396 GB, free: 14.47 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 9.847e-05/0.6581, allocations: 17.42 kB / 1.396 GB, free: 14.46 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.6582, allocations: 71.41 kB / 1.396 GB, free: 14.39 MB / 0.9011 GB Notification: Performance of SimCode: time 7.72e-07/0.6582, allocations: 0 / 1.396 GB, free: 14.39 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02061/0.6788, allocations: 4.908 MB / 1.4 GB, free: 9.637 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003302/0.6792, allocations: 182.5 kB / 1.401 GB, free: 9.398 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.199/2.878, allocations: 8 kB / 1.401 GB, free: 9.391 MB / 0.9011 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor.fmu > Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor_res.mat does not exist to compare? outputFormat=mat