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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007819/0.0007819, allocations: 91.06 kB / 15.06 MB, free: 1.098 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.000851/0.0008512, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.2 MB / 240 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.535/2.535, allocations: 409.4 MB / 0.684 GB, free: 0.9648 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005088/0.0005089, allocations: 11.98 kB / 0.8378 GB, free: 6.523 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7046/0.7051, allocations: 146.8 MB / 0.9811 GB, free: 6.297 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.000735/0.7059, allocations: 329.5 kB / 0.9815 GB, free: 5.973 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.7071, allocations: 1.06 MB / 0.9825 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.218e-05/0.7072, allocations: 0 / 0.9825 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 1.362e-05/0.7072, allocations: 7.938 kB / 0.9825 GB, free: 4.891 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000219/0.7074, allocations: 15.97 kB / 0.9825 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 2.995e-06/0.7074, allocations: 0 / 0.9825 GB, free: 4.875 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 4.224e-05/0.7075, allocations: 4 kB / 0.9825 GB, free: 4.871 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 4.732e-05/0.7075, allocations: 8 kB / 0.9825 GB, free: 4.863 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 1.678e-05/0.7076, allocations: 3.938 kB / 0.9825 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 2.88e-05/0.7076, allocations: 0 / 0.9825 GB, free: 4.859 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.923e-06/0.7076, allocations: 4 kB / 0.9825 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.596e-05/0.7077, allocations: 19.92 kB / 0.9826 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.573e-06/0.7077, allocations: 3.984 kB / 0.9826 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.006e-05/0.7078, allocations: 25.7 kB / 0.9826 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 6.103e-05/0.7078, allocations: 11.98 kB / 0.9826 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.7078, allocations: 0 / 0.9826 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.032e-06/0.7078, allocations: 0 / 0.9826 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.7078, allocations: 0 / 0.9826 GB, free: 4.789 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.00029/0.7081, allocations: 323.3 kB / 0.9829 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.7082, allocations: 8.031 kB / 0.9829 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.953e-05/0.7082, allocations: 30.56 kB / 0.9829 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.055e-05/0.7083, allocations: 0 / 0.9829 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.141e-05/0.7084, allocations: 167 kB / 0.9831 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.7084, allocations: 0 / 0.9831 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.526e-05/0.7084, allocations: 4 kB / 0.9831 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.933e-05/0.7085, allocations: 41.58 kB / 0.9831 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.7085, allocations: 4 kB / 0.9832 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.934e-06/0.7085, allocations: 7.984 kB / 0.9832 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.7085, allocations: 0 / 0.9832 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.582e-05/0.7086, allocations: 11.98 kB / 0.9832 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000143/0.7087, allocations: 149.6 kB / 0.9833 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001784/0.7089, allocations: 38.55 kB / 0.9833 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.158e-05/0.709, allocations: 8.859 kB / 0.9834 GB, free: 3.844 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001369/0.7091, allocations: 85.19 kB / 0.9834 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.7091, allocations: 38.56 kB / 0.9835 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.7091, allocations: 0 / 0.9835 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5): time 0.003671/0.7128, allocations: 0.5698 MB / 0.984 GB, free: 3.121 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/0.7129, allocations: 51.41 kB / 0.9841 GB, free: 3.059 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.983e-05/0.7129, allocations: 89.86 kB / 0.9842 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.7129, allocations: 25.7 kB / 0.9842 GB, free: 2.93 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 2.973e-05/0.713, allocations: 80.14 kB / 0.9843 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.189e-05/0.713, allocations: 23.66 kB / 0.9843 GB, free: 2.824 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.031e-05/0.713, allocations: 4 kB / 0.9843 GB, free: 2.82 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.784e-05/0.7131, allocations: 314.8 kB / 0.9846 GB, free: 2.504 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004789/0.7136, allocations: 79.95 kB / 0.9847 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004677/0.7141, allocations: 102.5 kB / 0.9848 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004657/0.7146, allocations: 87.95 kB / 0.9849 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.7146, allocations: 3.938 kB / 0.9849 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001058/0.7156, allocations: 209.6 kB / 0.9851 GB, free: 2.016 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.7157, allocations: 12.06 kB / 0.9851 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.7157, allocations: 0 / 0.9851 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.7157, allocations: 3.953 kB / 0.9851 GB, free: 2 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.716, allocations: 51.97 kB / 0.9851 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.7161, allocations: 0 / 0.9851 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.7163, allocations: 39.98 kB / 0.9852 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.464e-05/0.7164, allocations: 4 kB / 0.9852 GB, free: 1.906 MB / 0.7325 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 8.177e-05/0.7165, allocations: 113.8 kB / 0.9853 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.665e-05/0.7165, allocations: 0 / 0.9853 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001135/0.7176, allocations: 241 kB / 0.9855 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.7176, allocations: 7.953 kB / 0.9855 GB, free: 1.539 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.7176, allocations: 4 kB / 0.9855 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.7177, allocations: 0 / 0.9855 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001321/0.719, allocations: 450.5 kB / 0.9859 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.719, allocations: 0 / 0.9859 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000315/0.7193, allocations: 51.91 kB / 0.986 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.645e-06/0.7193, allocations: 3.953 kB / 0.986 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.354e-05/0.7193, allocations: 320 / 0.986 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.7194, allocations: 4 kB / 0.986 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.7194, allocations: 4 kB / 0.986 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.7204, allocations: 303.4 kB / 0.9863 GB, free: 0.6641 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.229e-05/0.7205, allocations: 77.11 kB / 0.9864 GB, free: 0.5703 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.7205, allocations: 7.953 kB / 0.9864 GB, free: 0.5625 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003099/0.7208, allocations: 47.91 kB / 0.9864 GB, free: 0.5156 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.886e-05/0.7209, allocations: 4 kB / 0.9864 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.7209, allocations: 432 / 0.9864 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 3.027e-05/0.7209, allocations: 75.28 kB / 0.9865 GB, free: 448 kB / 0.7325 GB Notification: Performance of sort global known variables: time 9e-08/0.7209, allocations: 0 / 0.9865 GB, free: 448 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002604/0.7212, allocations: 15.98 kB / 0.9865 GB, free: 432 kB / 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 (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.001413/0.7226, allocations: 0.8413 MB / 0.9873 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001029/0.7236, allocations: 180 kB / 0.9875 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.7237, allocations: 0 / 0.9875 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004947/0.7242, allocations: 88 kB / 0.9876 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002301/0.7244, allocations: 9.078 kB / 0.9876 GB, free: 15.29 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.7255, allocations: 244.3 kB / 0.9878 GB, free: 15.01 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.7258, allocations: 0.677 MB / 0.9885 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002508/0.726, allocations: 28 kB / 0.9885 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.298e-05/0.7261, allocations: 15.44 kB / 0.9885 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of SimCode: time 2.5e-07/0.7261, allocations: 0 / 0.9885 GB, free: 14.26 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01257/0.7387, allocations: 1.452 MB / 0.99 GB, free: 12.99 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/0.7389, allocations: 210.4 kB / 0.9902 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/2.4, allocations: 0 / 0.9902 GB, free: 12.75 MB / 0.7481 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) Environment - environmentSimulation: 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