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.285/2.285, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.001177/0.001177, allocations: 180.8 kB / 487.4 MB, free: 5.043 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.481/1.481, allocations: 221.5 MB / 0.7824 GB, free: 0.9336 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008988/0.0008987, allocations: 102.9 kB / 0.9219 GB, free: 2.172 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.512e-05/2.533e-05, allocations: 8 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2695, allocations: 142.4 MB / 1.206 GB, free: 43.84 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8669/1.136, allocations: 148.4 MB / 1.351 GB, free: 18.38 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002034/1.137, allocations: 76.36 kB / 1.351 GB, free: 18.38 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002859/1.14, allocations: 0.8696 MB / 1.352 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.196e-06/1.14, allocations: 2.109 kB / 1.352 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.061e-06/1.14, allocations: 5.25 kB / 1.352 GB, free: 34.04 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.0002195/1.14, allocations: 318 kB / 1.352 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/1.14, allocations: 12.19 kB / 1.352 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.94e-05/1.14, allocations: 0.5156 kB / 1.352 GB, free: 33.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.647e-05/1.14, allocations: 169.5 kB / 1.352 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/1.14, allocations: 4 kB / 1.352 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.149e-05/1.14, allocations: 1.312 kB / 1.352 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.255e-05/1.14, allocations: 4.594 kB / 1.352 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.292e-05/1.14, allocations: 32.12 kB / 1.352 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/1.14, allocations: 3.938 kB / 1.352 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/1.14, allocations: 1.312 kB / 1.352 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/1.14, allocations: 0 / 1.352 GB, free: 33.45 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001074/1.14, allocations: 141.4 kB / 1.353 GB, free: 33.29 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001514/1.14, allocations: 34.28 kB / 1.353 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.788e-05/1.14, allocations: 7.484 kB / 1.353 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001194/1.141, allocations: 83.39 kB / 1.353 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.61e-05/1.141, allocations: 32.42 kB / 1.353 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/1.141, allocations: 0 / 1.353 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5): time 0.002534/1.143, allocations: 361.8 kB / 1.353 GB, free: 33.06 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.552e-05/1.143, allocations: 55.56 kB / 1.353 GB, free: 33 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.035e-05/1.143, allocations: 85 kB / 1.353 GB, free: 32.91 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/1.143, allocations: 26.31 kB / 1.353 GB, free: 32.88 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 2.841e-05/1.143, allocations: 82.92 kB / 1.353 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.749e-05/1.143, allocations: 10.33 kB / 1.353 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.079e-05/1.143, allocations: 1.312 kB / 1.353 GB, free: 32.79 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001257/1.144, allocations: 314.7 kB / 1.354 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.175e-05/1.144, allocations: 9.188 kB / 1.354 GB, free: 32.47 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.593e-05/1.144, allocations: 27.66 kB / 1.354 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001016/1.144, allocations: 20.7 kB / 1.354 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.01e-07/1.144, allocations: 1.25 kB / 1.354 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001912/1.144, allocations: 65.44 kB / 1.354 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/1.144, allocations: 9.797 kB / 1.354 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/1.144, allocations: 0 / 1.354 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/1.144, allocations: 1.312 kB / 1.354 GB, free: 32.4 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004012/1.144, allocations: 54.75 kB / 1.354 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/1.144, allocations: 0.6562 kB / 1.354 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003303/1.145, allocations: 41.92 kB / 1.354 GB, free: 32.39 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/1.145, allocations: 4.484 kB / 1.354 GB, free: 32.39 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 8.621e-05/1.145, allocations: 105.6 kB / 1.354 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001891/1.145, allocations: 64.72 kB / 1.354 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.485e-05/1.145, allocations: 7.719 kB / 1.354 GB, free: 32.24 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002969/1.145, allocations: 91.58 kB / 1.354 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/1.145, allocations: 0.7969 kB / 1.354 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/1.145, allocations: 4 kB / 1.354 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/1.145, allocations: 3.984 kB / 1.354 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003757/1.146, allocations: 285.7 kB / 1.354 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/1.146, allocations: 0.6094 kB / 1.354 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003704/1.146, allocations: 54.06 kB / 1.354 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/1.146, allocations: 0 / 1.354 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/1.146, allocations: 5.5 kB / 1.354 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/1.146, allocations: 3.812 kB / 1.354 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/1.146, allocations: 4.5 kB / 1.354 GB, free: 31.9 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002043/1.146, allocations: 167.9 kB / 1.355 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.733e-05/1.146, allocations: 77.77 kB / 1.355 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/1.147, allocations: 0.75 kB / 1.355 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003512/1.147, allocations: 40.03 kB / 1.355 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.867e-05/1.147, allocations: 1.266 kB / 1.355 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/1.147, allocations: 4.438 kB / 1.355 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 3.318e-05/1.147, allocations: 75.89 kB / 1.355 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.2e-07/1.147, allocations: 0 / 1.355 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002354/1.147, allocations: 7.625 kB / 1.355 GB, free: 31.59 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.000557/1.148, allocations: 0.7043 MB / 1.355 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001229/1.148, allocations: 21.88 kB / 1.356 GB, free: 30.93 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/1.148, allocations: 3.938 kB / 1.356 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.054e-05/1.148, allocations: 15.05 kB / 1.356 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001337/1.148, allocations: 2.5 kB / 1.356 GB, free: 30.92 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006491/1.149, allocations: 134.1 kB / 1.356 GB, free: 30.81 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/1.149, allocations: 0.6759 MB / 1.356 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002203/1.149, allocations: 29.09 kB / 1.356 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.2e-05/1.149, allocations: 16.08 kB / 1.356 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/1.149, allocations: 0 / 1.356 GB, free: 30.09 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/1.168, allocations: 1.129 MB / 1.357 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/1.168, allocations: 166.2 kB / 1.358 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.431/2.599, allocations: 0 / 1.358 GB, free: 29.81 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