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/ModelicaServices 4.0.0+maint.om/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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001431/0.001432, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.696/2.696, allocations: 223.2 MB / 239.9 MB, free: 5.477 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.369/4.369, allocations: 409.2 MB / 0.6838 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.000666/0.0006663, allocations: 12 kB / 0.8375 GB, free: 6.582 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.541/1.541, allocations: 146.8 MB / 0.9809 GB, free: 6.324 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.003002/1.544, allocations: 1.153 MB / 0.982 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001423/1.546, allocations: 442.7 kB / 0.9824 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.686e-05/1.546, allocations: 0 / 0.9824 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.964e-05/1.546, allocations: 0 / 0.9824 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0001207/1.546, allocations: 0 / 0.9824 GB, free: 4.723 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000317/1.547, allocations: 23.92 kB / 0.9824 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.238e-05/1.547, allocations: 23.84 kB / 0.9824 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/1.547, allocations: 4 kB / 0.9825 GB, free: 4.672 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/1.547, allocations: 11.97 kB / 0.9825 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.457e-05/1.547, allocations: 11.94 kB / 0.9825 GB, free: 4.648 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/1.547, allocations: 4 kB / 0.9825 GB, free: 4.645 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/1.547, allocations: 15.98 kB / 0.9825 GB, free: 4.629 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.99e-05/1.547, allocations: 3.984 kB / 0.9825 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.255e-05/1.547, allocations: 25.7 kB / 0.9825 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001504/1.548, allocations: 23.95 kB / 0.9825 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/1.548, allocations: 3.938 kB / 0.9825 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.396e-06/1.548, allocations: 0 / 0.9825 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.065e-06/1.548, allocations: 0 / 0.9825 GB, free: 4.566 MB / 0.7325 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.0008473/1.548, allocations: 345.6 kB / 0.9829 GB, free: 4.184 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 8.063e-05/1.549, allocations: 12.03 kB / 0.9829 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.506e-05/1.549, allocations: 34.56 kB / 0.9829 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.243e-05/1.549, allocations: 0 / 0.9829 GB, free: 4.129 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/1.549, allocations: 170.9 kB / 0.9831 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/1.549, allocations: 0 / 0.9831 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.371e-05/1.549, allocations: 0 / 0.9831 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003339/1.549, allocations: 61.62 kB / 0.9831 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/1.549, allocations: 0 / 0.9831 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.324e-05/1.549, allocations: 0 / 0.9831 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.653e-05/1.549, allocations: 4 kB / 0.9831 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003348/1.55, allocations: 51.89 kB / 0.9832 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005754/1.55, allocations: 249 kB / 0.9834 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002412/1.551, allocations: 42.52 kB / 0.9835 GB, free: 3.457 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002548/1.551, allocations: 81.17 kB / 0.9836 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.987e-05/1.551, allocations: 38.55 kB / 0.9836 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=2): time 2.315e-06/1.551, allocations: 0 / 0.9836 GB, free: 3.312 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2): time 0.0006781/1.552, allocations: 101.7 kB / 0.9837 GB, free: 3.207 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/1.552, allocations: 51.41 kB / 0.9837 GB, free: 3.145 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/1.552, allocations: 109.8 kB / 0.9838 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/1.552, allocations: 25.7 kB / 0.9839 GB, free: 2.996 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.049e-05/1.552, allocations: 80.14 kB / 0.9839 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/1.552, allocations: 3.906 kB / 0.9839 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.6e-06/1.552, allocations: 0 / 0.9839 GB, free: 2.91 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002227/1.552, allocations: 322.8 kB / 0.9843 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/1.552, allocations: 20.02 kB / 0.9843 GB, free: 2.566 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001361/1.553, allocations: 23.98 kB / 0.9843 GB, free: 2.543 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/1.553, allocations: 20.05 kB / 0.9843 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/1.553, allocations: 0 / 0.9843 GB, free: 2.523 MB / 0.7325 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0004036/1.553, allocations: 89.55 kB / 0.9844 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/1.553, allocations: 7.938 kB / 0.9844 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/1.553, allocations: 0 / 0.9844 GB, free: 2.422 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/1.553, allocations: 4.031 kB / 0.9844 GB, free: 2.418 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/1.553, allocations: 11.98 kB / 0.9844 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/1.553, allocations: 0 / 0.9844 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.805e-05/1.554, allocations: 15.89 kB / 0.9844 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/1.554, allocations: 0 / 0.9844 GB, free: 2.391 MB / 0.7325 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 () * Number of clocked 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 0.0001506/1.554, allocations: 105.8 kB / 0.9845 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.142e-05/1.554, allocations: 7.953 kB / 0.9845 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004272/1.554, allocations: 88.72 kB / 0.9846 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.088e-06/1.554, allocations: 0 / 0.9846 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/1.554, allocations: 0 / 0.9846 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/1.554, allocations: 0 / 0.9846 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002853/1.555, allocations: 161.7 kB / 0.9848 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.441e-06/1.555, allocations: 4 kB / 0.9848 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/1.555, allocations: 11.98 kB / 0.9848 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/1.555, allocations: 256 / 0.9848 GB, free: 1.957 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/1.555, allocations: 3.953 kB / 0.9848 GB, free: 1.953 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.035e-06/1.555, allocations: 4 kB / 0.9848 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/1.555, allocations: 0 / 0.9848 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004632/1.555, allocations: 179.5 kB / 0.985 GB, free: 1.758 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.725e-05/1.555, allocations: 81.02 kB / 0.9851 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.215e-05/1.555, allocations: 0 / 0.9851 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/1.556, allocations: 15.94 kB / 0.9851 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.928e-05/1.556, allocations: 4.031 kB / 0.9851 GB, free: 1.641 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.765e-06/1.556, allocations: 3.938 kB / 0.9851 GB, free: 1.637 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.365e-05/1.556, allocations: 87.22 kB / 0.9852 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/1.556, allocations: 0 / 0.9852 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004145/1.556, allocations: 15.98 kB / 0.9852 GB, free: 1.535 MB / 0.7325 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 (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.0009534/1.557, allocations: 0.7008 MB / 0.9859 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003878/1.558, allocations: 44 kB / 0.9859 GB, free: 0.7656 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/1.558, allocations: 4 kB / 0.9859 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001759/1.558, allocations: 31.91 kB / 0.9859 GB, free: 0.7305 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004034/1.558, allocations: 7.891 kB / 0.9859 GB, free: 0.7227 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007286/1.559, allocations: 142.5 kB / 0.9861 GB, free: 0.5391 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004796/1.559, allocations: 0.677 MB / 0.9867 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 4.635e-05/1.56, allocations: 4 kB / 0.9867 GB, free: 15.83 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.422e-05/1.56, allocations: 15.38 kB / 0.9868 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of SimCode: time 9.32e-07/1.56, allocations: 0 / 0.9868 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0201/1.58, allocations: 1.147 MB / 0.9879 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003764/1.58, allocations: 184.3 kB / 0.9881 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.937/4.517, allocations: 0 / 0.9881 GB, free: 14.56 MB / 0.7481 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) Environment - environmentSimulation: 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