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.34/2.34, allocations: 390.5 MB / 398 MB, free: 10.98 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.000975/0.000975, allocations: 165 kB / 491.2 MB, free: 1.605 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.66/1.66, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.0009566/0.0009565, allocations: 97.84 kB / 0.9269 GB, free: 13.83 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.964e-05/1.966e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3328, allocations: 143 MB / 1.212 GB, free: 39.45 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.01/1.343, allocations: 152.4 MB / 1.361 GB, free: 17.28 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/1.344, allocations: 82.42 kB / 1.361 GB, free: 17.28 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01605/1.36, allocations: 5.851 MB / 1.367 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.222e-06/1.36, allocations: 0 / 1.367 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.797e-05/1.36, allocations: 3.812 kB / 1.367 GB, free: 32.62 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.0007475/1.36, allocations: 0.5609 MB / 1.368 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/1.361, allocations: 7.625 kB / 1.368 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.927e-05/1.361, allocations: 30.95 kB / 1.368 GB, free: 32.15 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003994/1.361, allocations: 290.8 kB / 1.368 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/1.361, allocations: 3.812 kB / 1.368 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/1.361, allocations: 7.625 kB / 1.368 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000234/1.361, allocations: 136.3 kB / 1.368 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/1.362, allocations: 220.5 kB / 1.368 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/1.362, allocations: 0 / 1.368 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.673e-05/1.362, allocations: 7.859 kB / 1.368 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/1.362, allocations: 4.719 kB / 1.368 GB, free: 31.83 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008326/1.363, allocations: 0.6854 MB / 1.369 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001982/1.363, allocations: 155.6 kB / 1.369 GB, free: 31.37 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/1.363, allocations: 104.1 kB / 1.369 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/1.363, allocations: 0 / 1.369 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002139/1.363, allocations: 178 kB / 1.369 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=15): time 1.283e-06/1.363, allocations: 0 / 1.369 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15): time 0.0005589/1.364, allocations: 310.6 kB / 1.37 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/1.364, allocations: 139 kB / 1.37 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/1.364, allocations: 224.3 kB / 1.37 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.559e-05/1.364, allocations: 35.31 kB / 1.37 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/1.364, allocations: 154.2 kB / 1.37 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.733e-05/1.364, allocations: 40.89 kB / 1.37 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.247e-05/1.364, allocations: 0 / 1.37 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001358/1.364, allocations: 341.7 kB / 1.371 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/1.364, allocations: 91.95 kB / 1.371 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/1.365, allocations: 136.3 kB / 1.371 GB, free: 30.45 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/1.365, allocations: 88.56 kB / 1.371 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/1.365, allocations: 0 / 1.371 GB, free: 30.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004232/1.365, allocations: 336.8 kB / 1.371 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.541e-05/1.365, allocations: 34.62 kB / 1.371 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/1.365, allocations: 7.844 kB / 1.371 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/1.365, allocations: 0 / 1.371 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/1.365, allocations: 31.86 kB / 1.371 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/1.365, allocations: 0 / 1.371 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001703/1.366, allocations: 42.7 kB / 1.371 GB, free: 30.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.132e-05/1.366, allocations: 12.28 kB / 1.371 GB, free: 30.34 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.0001588/1.366, allocations: 146.7 kB / 1.371 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005178/1.366, allocations: 318.7 kB / 1.372 GB, free: 30.15 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.617e-05/1.366, allocations: 26.31 kB / 1.372 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.048e-05/1.366, allocations: 30.25 kB / 1.372 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.726e-06/1.366, allocations: 4 kB / 1.372 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/1.366, allocations: 0 / 1.372 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/1.366, allocations: 0 / 1.372 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002785/1.367, allocations: 271.6 kB / 1.372 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/1.367, allocations: 10.47 kB / 1.372 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001296/1.367, allocations: 18.22 kB / 1.372 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/1.367, allocations: 3.906 kB / 1.372 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/1.367, allocations: 3.812 kB / 1.372 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/1.367, allocations: 3.047 kB / 1.372 GB, free: 29.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/1.367, allocations: 4 kB / 1.372 GB, free: 29.94 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007681/1.368, allocations: 481.2 kB / 1.373 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.406e-05/1.368, allocations: 104 kB / 1.373 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.148e-05/1.368, allocations: 6.031 kB / 1.373 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/1.368, allocations: 32.72 kB / 1.373 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/1.368, allocations: 29.28 kB / 1.373 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/1.368, allocations: 11.53 kB / 1.373 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001883/1.368, allocations: 182.8 kB / 1.373 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.51e-07/1.368, allocations: 0 / 1.373 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003301/1.369, allocations: 66.09 kB / 1.373 GB, free: 29.65 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.00092/1.37, allocations: 0.9631 MB / 1.374 GB, free: 29.04 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003427/1.37, allocations: 264.2 kB / 1.374 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/1.37, allocations: 0 / 1.374 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001372/1.37, allocations: 166 kB / 1.374 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/1.37, allocations: 24.38 kB / 1.374 GB, free: 28.91 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/1.372, allocations: 426.3 kB / 1.375 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004444/1.372, allocations: 0.761 MB / 1.376 GB, free: 28.03 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.33e-05/1.372, allocations: 19.22 kB / 1.376 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/1.372, allocations: 69.02 kB / 1.376 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.372, allocations: 0 / 1.376 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02491/1.397, allocations: 4.362 MB / 1.38 GB, free: 27.73 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/1.397, allocations: 149 kB / 1.38 GB, free: 27.54 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.802/3.2, allocations: 0 / 1.38 GB, free: 27.54 MB / 0.8386 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