Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.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.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.419/2.419, allocations: 393.5 MB / 408.4 MB, free: 10.96 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.001086/0.001086, allocations: 184 kB / 0.4901 GB, free: 2.238 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.576/1.576, allocations: 223.1 MB / 0.7992 GB, free: 14.69 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.0009352/0.000935, allocations: 108 kB / 0.9396 GB, free: 1.914 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004001/0.0004002, allocations: 10.56 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3298/0.3302, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2017/0.5319, allocations: 149.9 MB / 1.376 GB, free: 3.566 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.5322, allocations: 79.94 kB / 1.376 GB, free: 3.488 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003113/0.5354, allocations: 0.8874 MB / 1.377 GB, free: 2.598 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.507e-06/0.5354, allocations: 0 / 1.377 GB, free: 2.598 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.795e-06/0.5354, allocations: 0 / 1.377 GB, free: 2.598 MB / 0.8698 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.0003748/0.5358, allocations: 331.5 kB / 1.377 GB, free: 2.227 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/0.5359, allocations: 8.031 kB / 1.377 GB, free: 2.219 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.814e-05/0.5359, allocations: 34.56 kB / 1.377 GB, free: 2.176 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.69e-05/0.5359, allocations: 0 / 1.377 GB, free: 2.176 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.5361, allocations: 167 kB / 1.377 GB, free: 1.973 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.5361, allocations: 4 kB / 1.377 GB, free: 1.969 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.564e-05/0.5361, allocations: 0 / 1.377 GB, free: 1.969 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.5363, allocations: 33.64 kB / 1.377 GB, free: 1.93 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.5363, allocations: 4 kB / 1.377 GB, free: 1.926 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.087e-06/0.5363, allocations: 0 / 1.377 GB, free: 1.926 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.5363, allocations: 4 kB / 1.377 GB, free: 1.922 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.653e-05/0.5364, allocations: 7.984 kB / 1.377 GB, free: 1.914 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000189/0.5366, allocations: 153.6 kB / 1.377 GB, free: 1.715 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.5368, allocations: 30.61 kB / 1.377 GB, free: 1.676 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001604/0.5369, allocations: 85.19 kB / 1.377 GB, free: 1.574 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.862e-05/0.537, allocations: 38.5 kB / 1.378 GB, free: 1.527 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.472e-06/0.537, allocations: 4 kB / 1.378 GB, free: 1.523 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5): time 0.004199/0.5412, allocations: 0.5719 MB / 1.378 GB, free: 0.9453 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.5413, allocations: 51.41 kB / 1.378 GB, free: 0.8828 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.5e-05/0.5413, allocations: 85 kB / 1.378 GB, free: 0.793 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.5413, allocations: 25.7 kB / 1.378 GB, free: 0.7617 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 2.926e-05/0.5414, allocations: 80.14 kB / 1.378 GB, free: 0.6797 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.637e-05/0.5414, allocations: 23.62 kB / 1.378 GB, free: 0.6562 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.134e-05/0.5414, allocations: 4 kB / 1.378 GB, free: 0.6523 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5416, allocations: 314.8 kB / 1.379 GB, free: 344 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006/0.5422, allocations: 83.95 kB / 1.379 GB, free: 260 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006217/0.5428, allocations: 108.2 kB / 1.379 GB, free: 144 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006025/0.5434, allocations: 87.95 kB / 1.379 GB, free: 56 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.5435, allocations: 0 / 1.379 GB, free: 56 kB / 0.8698 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001331/0.5448, allocations: 209.6 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.5448, allocations: 7.984 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.5448, allocations: 0 / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.5449, allocations: 8.031 kB / 1.379 GB, free: 15.83 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004072/0.5453, allocations: 47.91 kB / 1.379 GB, free: 15.78 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/0.5453, allocations: 8 kB / 1.379 GB, free: 15.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.5456, allocations: 31.98 kB / 1.379 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.5457, allocations: 12 kB / 1.379 GB, free: 15.73 MB / 0.8855 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 () * Number of clocked 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 0.0001074/0.5458, allocations: 111.5 kB / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.196e-05/0.5458, allocations: 7.984 kB / 1.379 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001364/0.5472, allocations: 229.1 kB / 1.38 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.5472, allocations: 0 / 1.38 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.5472, allocations: 0 / 1.38 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.5472, allocations: 4.25 kB / 1.38 GB, free: 15.37 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001548/0.5488, allocations: 466.3 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.5488, allocations: 0 / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003798/0.5492, allocations: 51.97 kB / 1.38 GB, free: 14.81 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.5492, allocations: 0 / 1.38 GB, free: 14.81 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.5492, allocations: 0 / 1.38 GB, free: 14.81 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.5492, allocations: 0 / 1.38 GB, free: 14.81 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.5492, allocations: 0 / 1.38 GB, free: 14.81 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001217/0.5505, allocations: 311.3 kB / 1.38 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.331e-05/0.5505, allocations: 77.11 kB / 1.38 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.075e-05/0.5505, allocations: 0 / 1.38 GB, free: 14.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003528/0.5509, allocations: 43.97 kB / 1.38 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.249e-05/0.5509, allocations: 4 kB / 1.38 GB, free: 14.35 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/0.5509, allocations: 4 kB / 1.38 GB, free: 14.34 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.617e-05/0.551, allocations: 75.28 kB / 1.381 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.493e-06/0.551, allocations: 0 / 1.381 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002514/0.5512, allocations: 15.94 kB / 1.381 GB, free: 14.25 MB / 0.8855 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 () * Number of clocked 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.001602/0.5528, allocations: 0.8451 MB / 1.381 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00117/0.554, allocations: 176 kB / 1.382 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.554, allocations: 0 / 1.382 GB, free: 13.21 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005541/0.5546, allocations: 95.95 kB / 1.382 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001341/0.5547, allocations: 7.984 kB / 1.382 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.556, allocations: 244.5 kB / 1.382 GB, free: 12.82 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.5563, allocations: 0.677 MB / 1.383 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002727/0.5566, allocations: 32 kB / 1.383 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.014e-05/0.5567, allocations: 19.42 kB / 1.383 GB, free: 12.07 MB / 0.8855 GB Notification: Performance of SimCode: time 4.197e-06/0.5567, allocations: 0 / 1.383 GB, free: 12.07 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01258/0.5693, allocations: 1.423 MB / 1.384 GB, free: 10.82 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002427/0.5695, allocations: 202 kB / 1.384 GB, free: 10.58 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.505/2.075, allocations: 7.938 kB / 1.384 GB, free: 10.57 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_SmoothHeavisideDerivatives.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives_res.mat does not exist to compare? outputFormat=mat