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.427/2.427, allocations: 390.3 MB / 402.8 MB, free: 6.691 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.001303/0.001303, allocations: 176 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.587/1.587, allocations: 221.3 MB / 0.7915 GB, free: 5.367 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.0009486/0.0009486, allocations: 99.89 kB / 0.9318 GB, free: 5.676 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.422e-05/3.436e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.2988, allocations: 143 MB / 1.219 GB, free: 13.4 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9229/1.222, allocations: 153.1 MB / 1.368 GB, free: 0.9062 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002441/1.222, allocations: 81.83 kB / 1.368 GB, free: 0.8594 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01748/1.24, allocations: 5.884 MB / 1.374 GB, free: 11.81 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.403e-06/1.24, allocations: 0 / 1.374 GB, free: 11.81 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.376e-05/1.24, allocations: 4 kB / 1.374 GB, free: 11.81 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.0009261/1.241, allocations: 0.5533 MB / 1.375 GB, free: 11.22 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/1.241, allocations: 8.031 kB / 1.375 GB, free: 11.21 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.914e-05/1.241, allocations: 49.05 kB / 1.375 GB, free: 11.16 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.518e-05/1.241, allocations: 31.67 kB / 1.375 GB, free: 11.13 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005012/1.241, allocations: 289.8 kB / 1.375 GB, free: 10.83 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.116e-05/1.241, allocations: 11.56 kB / 1.375 GB, free: 10.82 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.311e-05/1.241, allocations: 18.81 kB / 1.375 GB, free: 10.81 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004747/1.242, allocations: 243.1 kB / 1.375 GB, free: 10.6 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/1.242, allocations: 0 / 1.375 GB, free: 10.6 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/1.242, allocations: 4.5 kB / 1.375 GB, free: 10.6 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/1.242, allocations: 4 kB / 1.375 GB, free: 10.59 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002736/1.242, allocations: 142.1 kB / 1.376 GB, free: 10.49 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001239/1.244, allocations: 0.7388 MB / 1.376 GB, free: 9.801 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/1.244, allocations: 162.5 kB / 1.376 GB, free: 9.68 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001568/1.244, allocations: 101.6 kB / 1.376 GB, free: 9.605 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/1.244, allocations: 0 / 1.376 GB, free: 9.605 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002907/1.244, allocations: 180.1 kB / 1.377 GB, free: 9.441 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 3.877e-06/1.244, allocations: 7.922 kB / 1.377 GB, free: 9.434 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0006652/1.245, allocations: 344.6 kB / 1.377 GB, free: 9.141 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/1.245, allocations: 136.5 kB / 1.377 GB, free: 8.977 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003005/1.245, allocations: 249.7 kB / 1.377 GB, free: 8.766 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.798e-05/1.245, allocations: 33.11 kB / 1.377 GB, free: 8.73 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/1.246, allocations: 155.6 kB / 1.378 GB, free: 8.609 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.983e-05/1.246, allocations: 43.2 kB / 1.378 GB, free: 8.574 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.189e-05/1.246, allocations: 0 / 1.378 GB, free: 8.574 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001397/1.246, allocations: 338.2 kB / 1.378 GB, free: 8.246 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/1.246, allocations: 97.53 kB / 1.378 GB, free: 8.172 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/1.246, allocations: 146.7 kB / 1.378 GB, free: 8.047 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001793/1.246, allocations: 116.2 kB / 1.378 GB, free: 7.949 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/1.246, allocations: 0 / 1.378 GB, free: 7.949 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0006154/1.247, allocations: 379.5 kB / 1.379 GB, free: 7.629 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.781e-05/1.247, allocations: 32.7 kB / 1.379 GB, free: 7.594 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/1.247, allocations: 4 kB / 1.379 GB, free: 7.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/1.247, allocations: 3.938 kB / 1.379 GB, free: 7.586 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/1.247, allocations: 31.92 kB / 1.379 GB, free: 7.555 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/1.247, allocations: 0 / 1.379 GB, free: 7.555 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002295/1.248, allocations: 47.22 kB / 1.379 GB, free: 7.512 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.087e-05/1.248, allocations: 12 kB / 1.379 GB, free: 7.5 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.0001596/1.248, allocations: 160.7 kB / 1.379 GB, free: 7.336 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.556e-05/1.248, allocations: 23.72 kB / 1.379 GB, free: 7.312 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.642e-05/1.248, allocations: 32.39 kB / 1.379 GB, free: 7.293 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/1.248, allocations: 4 kB / 1.379 GB, free: 7.289 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/1.248, allocations: 0 / 1.379 GB, free: 7.289 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/1.248, allocations: 0 / 1.379 GB, free: 7.289 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003379/1.248, allocations: 305.8 kB / 1.379 GB, free: 6.988 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/1.248, allocations: 0 / 1.379 GB, free: 6.988 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/1.248, allocations: 19.98 kB / 1.379 GB, free: 6.969 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/1.248, allocations: 0 / 1.379 GB, free: 6.969 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.817e-05/1.248, allocations: 7.812 kB / 1.379 GB, free: 6.965 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/1.248, allocations: 0 / 1.379 GB, free: 6.965 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/1.249, allocations: 0 / 1.379 GB, free: 6.965 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008586/1.249, allocations: 0.5245 MB / 1.38 GB, free: 6.523 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001042/1.249, allocations: 100.8 kB / 1.38 GB, free: 6.406 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/1.25, allocations: 6.812 kB / 1.38 GB, free: 6.402 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001746/1.25, allocations: 38.53 kB / 1.38 GB, free: 6.367 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/1.25, allocations: 22.52 kB / 1.38 GB, free: 6.348 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/1.25, allocations: 10.56 kB / 1.38 GB, free: 6.34 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002594/1.25, allocations: 201.9 kB / 1.38 GB, free: 6.172 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.2e-07/1.25, allocations: 0 / 1.38 GB, free: 6.172 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003762/1.251, allocations: 73.84 kB / 1.38 GB, free: 6.105 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.001345/1.252, allocations: 1.01 MB / 1.381 GB, free: 5.152 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004653/1.252, allocations: 270.1 kB / 1.381 GB, free: 4.945 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.252, allocations: 3.938 kB / 1.381 GB, free: 4.941 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002131/1.253, allocations: 178.6 kB / 1.382 GB, free: 4.797 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/1.253, allocations: 29.78 kB / 1.382 GB, free: 4.777 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/1.254, allocations: 441.5 kB / 1.382 GB, free: 4.363 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/1.254, allocations: 0.763 MB / 1.383 GB, free: 3.578 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.861e-05/1.255, allocations: 17.14 kB / 1.383 GB, free: 3.559 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/1.255, allocations: 66.84 kB / 1.383 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of SimCode: time 6.01e-07/1.255, allocations: 0 / 1.383 GB, free: 3.535 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01803/1.273, allocations: 4.89 MB / 1.388 GB, free: 14.8 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001645/1.273, allocations: 161.1 kB / 1.388 GB, free: 14.58 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.898/3.171, allocations: 3.938 kB / 1.388 GB, free: 14.57 MB / 0.8542 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