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 2.453/2.453, allocations: 390.3 MB / 405.3 MB, free: 13.42 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.001154/0.001154, allocations: 189 kB / 498.1 MB, free: 5.66 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.733/1.733, allocations: 223.1 MB / 0.7948 GB, free: 17.85 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.001044/0.001045, allocations: 97.06 kB / 0.9346 GB, free: 6.121 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003745/0.0003744, allocations: 17.16 kB / 1.084 GB, free: 221.7 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3028, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2318/0.5346, allocations: 149.1 MB / 1.369 GB, free: 12.73 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003454/0.535, allocations: 83.89 kB / 1.369 GB, free: 12.65 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00325/0.5383, allocations: 0.8782 MB / 1.37 GB, free: 11.77 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.916e-06/0.5384, allocations: 0 / 1.37 GB, free: 11.77 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.5384, allocations: 0 / 1.37 GB, free: 11.77 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.0003205/0.5387, allocations: 327.5 kB / 1.37 GB, free: 11.41 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.506e-05/0.5388, allocations: 12.03 kB / 1.37 GB, free: 11.39 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.604e-05/0.5388, allocations: 30.56 kB / 1.37 GB, free: 11.36 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.769e-05/0.5389, allocations: 3.938 kB / 1.37 GB, free: 11.35 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001189/0.539, allocations: 167 kB / 1.37 GB, free: 11.15 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.539, allocations: 4 kB / 1.37 GB, free: 11.14 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.328e-05/0.539, allocations: 4 kB / 1.37 GB, free: 11.14 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.5392, allocations: 29.7 kB / 1.37 GB, free: 11.11 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.5392, allocations: 3.984 kB / 1.37 GB, free: 11.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.5392, allocations: 4 kB / 1.37 GB, free: 11.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.5392, allocations: 0 / 1.37 GB, free: 11.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.371e-05/0.5393, allocations: 8 kB / 1.37 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002117/0.5395, allocations: 161.6 kB / 1.37 GB, free: 10.88 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.5397, allocations: 38.5 kB / 1.37 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001706/0.5399, allocations: 85.12 kB / 1.37 GB, free: 10.73 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.5399, allocations: 38.5 kB / 1.37 GB, free: 10.69 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.633e-06/0.54, allocations: 4 kB / 1.37 GB, free: 10.68 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5): time 0.005223/0.5452, allocations: 0.5598 MB / 1.371 GB, free: 10.12 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.5453, allocations: 55.41 kB / 1.371 GB, free: 10.05 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.332e-05/0.5453, allocations: 85 kB / 1.371 GB, free: 9.961 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.5454, allocations: 29.7 kB / 1.371 GB, free: 9.926 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 4.21e-05/0.5454, allocations: 80.14 kB / 1.371 GB, free: 9.844 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.724e-05/0.5455, allocations: 11.75 kB / 1.371 GB, free: 9.832 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.296e-05/0.5455, allocations: 0 / 1.371 GB, free: 9.832 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.5457, allocations: 330.8 kB / 1.372 GB, free: 9.5 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007547/0.5464, allocations: 75.95 kB / 1.372 GB, free: 9.426 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007224/0.5472, allocations: 110.5 kB / 1.372 GB, free: 9.309 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007115/0.5479, allocations: 79.95 kB / 1.372 GB, free: 9.23 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.5479, allocations: 4 kB / 1.372 GB, free: 9.227 MB / 0.8698 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001634/0.5495, allocations: 213.6 kB / 1.372 GB, free: 9.012 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.5496, allocations: 4.938 kB / 1.372 GB, free: 9.008 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.5496, allocations: 4.062 kB / 1.372 GB, free: 9.004 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.5496, allocations: 0 / 1.372 GB, free: 9.004 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000513/0.5502, allocations: 47.97 kB / 1.372 GB, free: 8.957 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.5502, allocations: 4 kB / 1.372 GB, free: 8.953 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004328/0.5506, allocations: 35.98 kB / 1.372 GB, free: 8.918 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.628e-05/0.5507, allocations: 11.98 kB / 1.372 GB, free: 8.906 MB / 0.8698 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.0001427/0.5508, allocations: 114.5 kB / 1.372 GB, free: 8.785 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.511e-05/0.5509, allocations: 3.906 kB / 1.372 GB, free: 8.781 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/0.5526, allocations: 237 kB / 1.372 GB, free: 8.543 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.5526, allocations: 0 / 1.372 GB, free: 8.543 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.762e-06/0.5526, allocations: 0 / 1.372 GB, free: 8.543 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.5526, allocations: 4 kB / 1.372 GB, free: 8.539 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001941/0.5546, allocations: 458.4 kB / 1.373 GB, free: 8.035 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.5546, allocations: 0 / 1.373 GB, free: 8.035 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004701/0.5551, allocations: 47.97 kB / 1.373 GB, free: 7.988 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.5551, allocations: 0 / 1.373 GB, free: 7.988 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/0.5551, allocations: 8 kB / 1.373 GB, free: 7.98 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.505e-06/0.5551, allocations: 0 / 1.373 GB, free: 7.98 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.175e-06/0.5551, allocations: 320 / 1.373 GB, free: 7.98 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.5567, allocations: 315.3 kB / 1.373 GB, free: 7.656 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.068e-05/0.5568, allocations: 77.11 kB / 1.373 GB, free: 7.562 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.318e-05/0.5568, allocations: 3.984 kB / 1.373 GB, free: 7.559 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004858/0.5573, allocations: 39.98 kB / 1.373 GB, free: 7.52 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.694e-05/0.5573, allocations: 3.938 kB / 1.373 GB, free: 7.516 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.5573, allocations: 0 / 1.373 GB, free: 7.516 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 3.414e-05/0.5574, allocations: 83.27 kB / 1.373 GB, free: 7.434 MB / 0.8698 GB Notification: Performance of sort global known variables: time 3.21e-07/0.5574, allocations: 3.938 kB / 1.373 GB, free: 7.43 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002624/0.5577, allocations: 12 kB / 1.373 GB, free: 7.418 MB / 0.8698 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.001656/0.5593, allocations: 0.8449 MB / 1.374 GB, free: 6.543 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001221/0.5605, allocations: 179.8 kB / 1.374 GB, free: 6.367 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5606, allocations: 192 / 1.374 GB, free: 6.367 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006089/0.5612, allocations: 91.94 kB / 1.375 GB, free: 6.277 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.5613, allocations: 4 kB / 1.375 GB, free: 6.273 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.5627, allocations: 252.5 kB / 1.375 GB, free: 5.984 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002873/0.563, allocations: 0.677 MB / 1.375 GB, free: 5.281 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002307/0.5632, allocations: 32 kB / 1.375 GB, free: 5.25 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.784e-05/0.5633, allocations: 15.42 kB / 1.375 GB, free: 5.234 MB / 0.8698 GB Notification: Performance of SimCode: time 3.9e-07/0.5633, allocations: 0 / 1.375 GB, free: 5.234 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01293/0.5762, allocations: 1.409 MB / 1.377 GB, free: 3.992 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002042/0.5765, allocations: 204.9 kB / 1.377 GB, free: 3.75 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.473/2.049, allocations: 4 kB / 1.377 GB, free: 3.746 MB / 0.8698 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