Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.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.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep",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 1.935/1.935, allocations: 387.1 MB / 399.7 MB, free: 9.461 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.001041/0.001042, allocations: 165 kB / 492.3 MB, free: 0.6172 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.238/1.238, allocations: 221.3 MB / 0.7872 GB, free: 12.95 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.0007834/0.0007834, allocations: 94.02 kB / 0.9267 GB, free: 14.03 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.914e-05/2.92e-05, allocations: 7.984 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2013/0.2013, allocations: 142.3 MB / 1.212 GB, free: 38.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7473/0.9487, allocations: 148.4 MB / 1.357 GB, free: 19.08 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001999/0.949, allocations: 76.41 kB / 1.358 GB, free: 19.08 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001615/0.9506, allocations: 0.5355 MB / 1.358 GB, free: 34.76 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.283e-06/0.9506, allocations: 0 / 1.358 GB, free: 34.76 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.9506, allocations: 0 / 1.358 GB, free: 34.76 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0001572/0.9508, allocations: 321.5 kB / 1.358 GB, free: 34.41 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.9508, allocations: 12.2 kB / 1.358 GB, free: 34.41 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.588e-05/0.9509, allocations: 30.56 kB / 1.358 GB, free: 34.37 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.951, allocations: 14.83 kB / 1.358 GB, free: 34.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.66e-05/0.9511, allocations: 166.7 kB / 1.359 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.676e-06/0.9511, allocations: 4 kB / 1.359 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.718e-06/0.9511, allocations: 0 / 1.359 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.661e-05/0.9512, allocations: 38.86 kB / 1.359 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.36e-06/0.9512, allocations: 0 / 1.359 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-06/0.9512, allocations: 0.6562 kB / 1.359 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.9512, allocations: 0 / 1.359 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.371e-05/0.9513, allocations: 0.7031 kB / 1.359 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.45e-05/0.9514, allocations: 151.2 kB / 1.359 GB, free: 33.95 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 3.099e-05/0.9514, allocations: 26.61 kB / 1.359 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.627e-05/0.9514, allocations: 8.734 kB / 1.359 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.606e-05/0.9515, allocations: 0 / 1.359 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.449e-05/0.9515, allocations: 31.31 kB / 1.359 GB, free: 33.87 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.9515, allocations: 0 / 1.359 GB, free: 33.87 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0001051/0.9516, allocations: 31.61 kB / 1.359 GB, free: 33.84 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.08e-05/0.9516, allocations: 55.34 kB / 1.359 GB, free: 33.77 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.293e-05/0.9516, allocations: 92.88 kB / 1.359 GB, free: 33.68 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.584e-06/0.9516, allocations: 29.58 kB / 1.359 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 1.087e-05/0.9517, allocations: 80.66 kB / 1.359 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.9517, allocations: 0.7812 kB / 1.359 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.795e-06/0.9517, allocations: 0 / 1.359 GB, free: 33.56 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 4.881e-05/0.9517, allocations: 311.6 kB / 1.359 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.043e-05/0.9518, allocations: 1.75 kB / 1.359 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.305e-06/0.9518, allocations: 4.406 kB / 1.359 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.827e-05/0.9518, allocations: 4.578 kB / 1.359 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.9518, allocations: 3.953 kB / 1.359 GB, free: 33.24 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.359e-05/0.9519, allocations: 35.94 kB / 1.359 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.9519, allocations: 3.844 kB / 1.359 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.9519, allocations: 0 / 1.359 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.05e-05/0.9519, allocations: 0 / 1.359 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.663e-05/0.952, allocations: 5.578 kB / 1.359 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.952, allocations: 0.7969 kB / 1.359 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.16e-05/0.952, allocations: 12.34 kB / 1.359 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.025e-06/0.952, allocations: 4.641 kB / 1.359 GB, free: 33.2 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 3.948e-05/0.9521, allocations: 105.3 kB / 1.36 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.436e-06/0.9521, allocations: 4.703 kB / 1.36 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.715e-05/0.9521, allocations: 3.125 kB / 1.36 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.9521, allocations: 4.547 kB / 1.36 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.9522, allocations: 9.125 kB / 1.36 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.175e-06/0.9522, allocations: 0 / 1.36 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.274e-05/0.9522, allocations: 146.5 kB / 1.36 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.9522, allocations: 0 / 1.36 GB, free: 32.89 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.015e-05/0.9523, allocations: 14.09 kB / 1.36 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.9523, allocations: 0 / 1.36 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.9523, allocations: 0 / 1.36 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.9523, allocations: 0.7969 kB / 1.36 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.9523, allocations: 0 / 1.36 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.471e-05/0.9524, allocations: 58.38 kB / 1.36 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.712e-05/0.9524, allocations: 77.91 kB / 1.36 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.9524, allocations: 12.72 kB / 1.36 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.308e-05/0.9525, allocations: 4.672 kB / 1.36 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.636e-06/0.9525, allocations: 3.938 kB / 1.36 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.848e-06/0.9525, allocations: 0.7969 kB / 1.36 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 2.194e-05/0.9525, allocations: 78.47 kB / 1.36 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9525, allocations: 0 / 1.36 GB, free: 32.64 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001679/0.9527, allocations: 3.844 kB / 1.36 GB, free: 32.64 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0002651/0.9529, allocations: 0.5933 MB / 1.361 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 5.919e-05/0.953, allocations: 5.016 kB / 1.361 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.953, allocations: 0 / 1.361 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.058e-05/0.953, allocations: 8.406 kB / 1.361 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.217e-05/0.9531, allocations: 5.156 kB / 1.361 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002339/0.9534, allocations: 77.66 kB / 1.361 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000195/0.9536, allocations: 0.6748 MB / 1.361 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.543e-05/0.9536, allocations: 0.7969 kB / 1.361 GB, free: 31.24 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.314e-05/0.9536, allocations: 10.94 kB / 1.361 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of SimCode: time 3.3e-07/0.9537, allocations: 0 / 1.361 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01026/0.9639, allocations: 0.7616 MB / 1.362 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001208/0.9641, allocations: 152.5 kB / 1.362 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.319/2.283, allocations: 0 / 1.362 GB, free: 30.86 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat does not exist to compare? outputFormat=mat