Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.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.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside",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 1.995/1.995, allocations: 390.3 MB / 402.8 MB, free: 6.734 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.0009703/0.0009703, allocations: 180.9 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.274/1.274, allocations: 221.3 MB / 0.7915 GB, free: 5.414 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.0008873/0.0008873, allocations: 84.03 kB / 0.9317 GB, free: 5.73 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.197e-05/3.214e-05, allocations: 4 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2214, allocations: 143 MB / 1.219 GB, free: 13.43 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7262/0.9476, allocations: 150.4 MB / 1.366 GB, free: 3.281 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.9479, allocations: 76.19 kB / 1.366 GB, free: 3.238 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003031/0.9509, allocations: 1.105 MB / 1.367 GB, free: 2.273 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.533e-06/0.951, allocations: 4 kB / 1.367 GB, free: 2.27 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.951, allocations: 0 / 1.367 GB, free: 2.27 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003105/0.9513, allocations: 342.4 kB / 1.367 GB, free: 1.891 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.9513, allocations: 12.03 kB / 1.367 GB, free: 1.879 MB / 0.823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.748e-05/0.9514, allocations: 37.8 kB / 1.367 GB, free: 1.836 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.137e-05/0.9514, allocations: 0.7812 kB / 1.367 GB, free: 1.836 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.165e-05/0.9515, allocations: 170.9 kB / 1.367 GB, free: 1.629 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.9515, allocations: 3.984 kB / 1.367 GB, free: 1.625 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-06/0.9516, allocations: 0 / 1.367 GB, free: 1.625 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.337e-05/0.9516, allocations: 36.69 kB / 1.367 GB, free: 1.586 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.9517, allocations: 8 kB / 1.367 GB, free: 1.578 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.9517, allocations: 0 / 1.367 GB, free: 1.578 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.9517, allocations: 0 / 1.367 GB, free: 1.578 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.109e-05/0.9517, allocations: 11.38 kB / 1.367 GB, free: 1.57 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003808/0.9521, allocations: 272.2 kB / 1.368 GB, free: 1.266 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 5.163e-05/0.9522, allocations: 25.95 kB / 1.368 GB, free: 1.234 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.328e-05/0.9522, allocations: 15.86 kB / 1.368 GB, free: 1.219 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.9523, allocations: 81.11 kB / 1.368 GB, free: 1.121 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.9524, allocations: 30.56 kB / 1.368 GB, free: 1.082 MB / 0.823 GB Notification: Performance of pre-optimization done (n=2): time 1.573e-06/0.9524, allocations: 0 / 1.368 GB, free: 1.082 MB / 0.823 GB Notification: Performance of matching and sorting (n=2): time 0.0001362/0.9525, allocations: 52.44 kB / 1.368 GB, free: 1.031 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.85e-05/0.9525, allocations: 55.36 kB / 1.368 GB, free: 0.9648 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.743e-05/0.9526, allocations: 95.88 kB / 1.368 GB, free: 0.8672 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.155e-05/0.9526, allocations: 29.14 kB / 1.368 GB, free: 0.8359 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.641e-05/0.9527, allocations: 84.14 kB / 1.368 GB, free: 0.75 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.569e-05/0.9527, allocations: 7.844 kB / 1.368 GB, free: 0.7422 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-06/0.9527, allocations: 0 / 1.368 GB, free: 0.7422 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.074e-05/0.9528, allocations: 318.3 kB / 1.368 GB, free: 436 kB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.661e-05/0.9528, allocations: 4 kB / 1.368 GB, free: 432 kB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.443e-05/0.9528, allocations: 7.938 kB / 1.369 GB, free: 428 kB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.85e-05/0.9529, allocations: 8.062 kB / 1.369 GB, free: 420 kB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.9529, allocations: 0 / 1.369 GB, free: 420 kB / 0.823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.009e-05/0.9529, allocations: 45.45 kB / 1.369 GB, free: 372 kB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.953, allocations: 7.984 kB / 1.369 GB, free: 364 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.953, allocations: 0 / 1.369 GB, free: 364 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.953, allocations: 0 / 1.369 GB, free: 364 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.58e-05/0.9531, allocations: 8 kB / 1.369 GB, free: 356 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.9531, allocations: 0 / 1.369 GB, free: 356 kB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.349e-05/0.9531, allocations: 23.03 kB / 1.369 GB, free: 336 kB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.671e-06/0.9532, allocations: 6.938 kB / 1.369 GB, free: 332 kB / 0.823 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 (2): * Single equations (assignments): 2 * 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 4.686e-05/0.9532, allocations: 101 kB / 1.369 GB, free: 224 kB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.386e-05/0.9532, allocations: 7.906 kB / 1.369 GB, free: 216 kB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.9533, allocations: 48.44 kB / 1.369 GB, free: 172 kB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.9534, allocations: 0 / 1.369 GB, free: 172 kB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.9534, allocations: 7.938 kB / 1.369 GB, free: 164 kB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.9534, allocations: 0 / 1.369 GB, free: 164 kB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.9535, allocations: 164.8 kB / 1.369 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.9535, allocations: 0 / 1.369 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.399e-05/0.9536, allocations: 11.98 kB / 1.369 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.9536, allocations: 0 / 1.369 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.9536, allocations: 0 / 1.369 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.9536, allocations: 0 / 1.369 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.9536, allocations: 4 kB / 1.369 GB, free: 15.94 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.714e-05/0.9537, allocations: 138 kB / 1.369 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.144e-05/0.9538, allocations: 85.09 kB / 1.369 GB, free: 15.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.079e-05/0.9538, allocations: 0 / 1.369 GB, free: 15.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.413e-05/0.9539, allocations: 4 kB / 1.369 GB, free: 15.69 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.582e-05/0.9539, allocations: 7.984 kB / 1.369 GB, free: 15.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.9539, allocations: 3.938 kB / 1.369 GB, free: 15.68 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.109e-05/0.954, allocations: 83.22 kB / 1.369 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.392e-06/0.954, allocations: 0 / 1.369 GB, free: 15.6 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000193/0.9542, allocations: 23.88 kB / 1.369 GB, free: 15.57 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 (2): * Single equations (assignments): 2 * 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.0003456/0.9545, allocations: 0.6682 MB / 1.37 GB, free: 14.89 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 7.255e-05/0.9546, allocations: 18.81 kB / 1.37 GB, free: 14.88 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.9546, allocations: 0 / 1.37 GB, free: 14.88 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.206e-05/0.9546, allocations: 12.03 kB / 1.37 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001576/0.9548, allocations: 9.016 kB / 1.37 GB, free: 14.86 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002873/0.9551, allocations: 105.1 kB / 1.37 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001848/0.9553, allocations: 0.677 MB / 1.371 GB, free: 14.02 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.789e-05/0.9553, allocations: 8.688 kB / 1.371 GB, free: 14.01 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.44e-05/0.9554, allocations: 7.438 kB / 1.371 GB, free: 14 MB / 0.8386 GB Notification: Performance of SimCode: time 3.01e-07/0.9554, allocations: 0 / 1.371 GB, free: 14 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01111/0.9665, allocations: 1.138 MB / 1.372 GB, free: 12.99 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001888/0.9667, allocations: 157.2 kB / 1.372 GB, free: 12.77 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.301/2.267, allocations: 6.328 kB / 1.372 GB, free: 12.77 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat does not exist to compare? outputFormat=mat