Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",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.97/1.97, allocations: 387.1 MB / 399.7 MB, free: 9.422 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.0009025/0.0009027, allocations: 184.8 kB / 492.3 MB, free: 0.6016 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.258/1.258, allocations: 221.3 MB / 0.7872 GB, free: 12.87 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.0008258/0.0008258, allocations: 94 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.256e-05/2.258e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1891/0.1891, allocations: 142.3 MB / 1.212 GB, free: 38.4 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6683/0.8574, allocations: 149.1 MB / 1.358 GB, free: 19.11 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001863/0.8576, allocations: 79.81 kB / 1.358 GB, free: 19.11 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002433/0.8601, allocations: 0.879 MB / 1.359 GB, free: 34.75 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.713e-06/0.8601, allocations: 0 / 1.359 GB, free: 34.75 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 9.578e-06/0.8601, allocations: 0.5312 kB / 1.359 GB, free: 34.75 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0001607/0.8603, allocations: 321.4 kB / 1.359 GB, free: 34.41 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.8603, allocations: 12.69 kB / 1.359 GB, free: 34.41 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.234e-05/0.8603, allocations: 30.56 kB / 1.359 GB, free: 34.37 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.74e-05/0.8604, allocations: 0 / 1.359 GB, free: 34.37 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.554e-05/0.8604, allocations: 168.5 kB / 1.36 GB, free: 34.16 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.633e-06/0.8604, allocations: 0 / 1.36 GB, free: 34.16 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.8605, allocations: 7.156 kB / 1.36 GB, free: 34.16 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.28e-05/0.8605, allocations: 32.75 kB / 1.36 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.8605, allocations: 3.938 kB / 1.36 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.373e-06/0.8606, allocations: 0 / 1.36 GB, free: 34.13 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.8606, allocations: 4 kB / 1.36 GB, free: 34.12 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.944e-05/0.8606, allocations: 7.766 kB / 1.36 GB, free: 34.12 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001003/0.8607, allocations: 157 kB / 1.36 GB, free: 33.93 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.8609, allocations: 32.61 kB / 1.36 GB, free: 33.91 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.564e-05/0.8609, allocations: 8.797 kB / 1.36 GB, free: 33.9 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001132/0.861, allocations: 84.11 kB / 1.36 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.472e-05/0.861, allocations: 38.5 kB / 1.36 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.861, allocations: 0 / 1.36 GB, free: 33.76 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.002341/0.8634, allocations: 348.7 kB / 1.36 GB, free: 33.71 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.838e-05/0.8634, allocations: 55.34 kB / 1.36 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.097e-05/0.8634, allocations: 85 kB / 1.36 GB, free: 33.55 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.8634, allocations: 28.03 kB / 1.36 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 1.549e-05/0.8635, allocations: 84.14 kB / 1.36 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.148e-05/0.8635, allocations: 16.44 kB / 1.36 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.488e-06/0.8635, allocations: 0 / 1.36 GB, free: 33.43 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 6.678e-05/0.8636, allocations: 318.3 kB / 1.361 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.935e-05/0.8636, allocations: 8.609 kB / 1.361 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.479e-05/0.8637, allocations: 27.33 kB / 1.361 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.136e-05/0.8637, allocations: 9.359 kB / 1.361 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.8637, allocations: 3.719 kB / 1.361 GB, free: 33.08 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001302/0.8639, allocations: 61.78 kB / 1.361 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.8639, allocations: 7.656 kB / 1.361 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.8639, allocations: 0.7969 kB / 1.361 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.8639, allocations: 3.938 kB / 1.361 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003637/0.8643, allocations: 50.09 kB / 1.361 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.8643, allocations: 5.922 kB / 1.361 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003114/0.8646, allocations: 43.98 kB / 1.361 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.284e-05/0.8646, allocations: 0.6094 kB / 1.361 GB, free: 33.03 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 5.765e-05/0.8647, allocations: 113.1 kB / 1.361 GB, free: 32.92 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.335e-05/0.8647, allocations: 4.891 kB / 1.361 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002461/0.865, allocations: 94.52 kB / 1.361 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.865, allocations: 3.984 kB / 1.361 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.865, allocations: 0.6094 kB / 1.361 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.865, allocations: 0 / 1.361 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003073/0.8653, allocations: 312.5 kB / 1.361 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.8653, allocations: 0.6562 kB / 1.361 GB, free: 32.56 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003548/0.8657, allocations: 49.94 kB / 1.362 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.8657, allocations: 0 / 1.362 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.8657, allocations: 9.25 kB / 1.362 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.8657, allocations: 0 / 1.362 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.8657, allocations: 3.812 kB / 1.362 GB, free: 32.55 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001487/0.8659, allocations: 154.7 kB / 1.362 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.414e-05/0.8659, allocations: 78.73 kB / 1.362 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.8659, allocations: 3.891 kB / 1.362 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003456/0.8663, allocations: 40.91 kB / 1.362 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.453e-05/0.8663, allocations: 4.578 kB / 1.362 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.8663, allocations: 0.6094 kB / 1.362 GB, free: 32.31 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 1.892e-05/0.8663, allocations: 76.03 kB / 1.362 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8663, allocations: 4 kB / 1.362 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002025/0.8665, allocations: 15.06 kB / 1.362 GB, free: 32.23 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 (5): * Single equations (assignments): 5 * 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.000358/0.8669, allocations: 0.6914 MB / 1.363 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001209/0.867, allocations: 32.52 kB / 1.363 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.8671, allocations: 4.188 kB / 1.363 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.697e-05/0.8671, allocations: 16.44 kB / 1.363 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001103/0.8672, allocations: 4.609 kB / 1.363 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006129/0.8678, allocations: 138 kB / 1.363 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001811/0.868, allocations: 0.6836 MB / 1.363 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002027/0.8682, allocations: 29.92 kB / 1.363 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.399e-05/0.8683, allocations: 11.22 kB / 1.363 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of SimCode: time 2.21e-07/0.8683, allocations: 3.875 kB / 1.363 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0113/0.8796, allocations: 1.425 MB / 1.365 GB, free: 30.58 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001419/0.8798, allocations: 177.3 kB / 1.365 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.484/2.364, allocations: 4 kB / 1.365 GB, free: 30.36 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat does not exist to compare? outputFormat=mat