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/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 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 100 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.001777/0.001777, allocations: 177.3 kB / 15.95 MB, free: 216 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.363/1.363, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.36/2.36, allocations: 390.3 MB / 0.6653 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003397/0.00034, allocations: 12 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7008/0.7011, allocations: 142.3 MB / 0.9536 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.SmoothHeavisideDerivatives): time 0.000626/0.7018, allocations: 327.3 kB / 0.9539 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001205/0.703, allocations: 1.07 MB / 0.955 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.624e-05/0.7031, allocations: 0 / 0.955 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.214e-05/0.7031, allocations: 1.438 kB / 0.955 GB, free: 6.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002046/0.7033, allocations: 17.7 kB / 0.955 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 2.655e-06/0.7033, allocations: 0 / 0.955 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.169e-05/0.7034, allocations: 5.578 kB / 0.955 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.876e-05/0.7034, allocations: 1.469 kB / 0.955 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.321e-05/0.7034, allocations: 0 / 0.955 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.275e-05/0.7035, allocations: 9.328 kB / 0.955 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.945e-06/0.7035, allocations: 1.75 kB / 0.955 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.101e-05/0.7036, allocations: 22.52 kB / 0.955 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.458e-06/0.7036, allocations: 0.6875 kB / 0.955 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.141e-05/0.7036, allocations: 25.7 kB / 0.955 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.17e-05/0.7037, allocations: 16.41 kB / 0.9551 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.7037, allocations: 0 / 0.9551 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7037, allocations: 0 / 0.9551 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.4e-06/0.7037, allocations: 1.219 kB / 0.9551 GB, free: 6.891 MB / 0.7169 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.0001744/0.7039, allocations: 318.6 kB / 0.9554 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.7039, allocations: 9.469 kB / 0.9554 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.691e-05/0.704, allocations: 31.75 kB / 0.9554 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.181e-05/0.704, allocations: 7.859 kB / 0.9554 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.397e-05/0.704, allocations: 164.2 kB / 0.9556 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.7041, allocations: 1 kB / 0.9556 GB, free: 6.289 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.043e-05/0.7041, allocations: 5 kB / 0.9556 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.196e-05/0.7042, allocations: 41.91 kB / 0.9556 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.7042, allocations: 0 / 0.9556 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.7042, allocations: 3.984 kB / 0.9556 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.7042, allocations: 5.438 kB / 0.9556 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.728e-05/0.7043, allocations: 7.328 kB / 0.9556 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.993e-05/0.7044, allocations: 153.1 kB / 0.9558 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001647/0.7045, allocations: 29.42 kB / 0.9558 GB, free: 6.008 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/0.7047, allocations: 85.06 kB / 0.9559 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.68e-05/0.7047, allocations: 36 kB / 0.9559 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.7047, allocations: 4 kB / 0.9559 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.004076/0.7088, allocations: 0.5656 MB / 0.9565 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.7088, allocations: 52.53 kB / 0.9565 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.653e-05/0.7089, allocations: 93.81 kB / 0.9566 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.7089, allocations: 25.7 kB / 0.9566 GB, free: 5.492 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.617e-05/0.7089, allocations: 81.42 kB / 0.9567 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 4.353e-05/0.709, allocations: 20.92 kB / 0.9567 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-06/0.709, allocations: 1.031 kB / 0.9567 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.956e-05/0.7091, allocations: 315.9 kB / 0.957 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005778/0.7096, allocations: 82.67 kB / 0.9571 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005861/0.7102, allocations: 106.4 kB / 0.9572 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005669/0.7108, allocations: 83.95 kB / 0.9573 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.7108, allocations: 1.375 kB / 0.9573 GB, free: 4.984 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.001193/0.712, allocations: 216.7 kB / 0.9575 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.7121, allocations: 5.938 kB / 0.9575 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.7121, allocations: 192 / 0.9575 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.714e-05/0.7121, allocations: 5.938 kB / 0.9575 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003973/0.7125, allocations: 53.81 kB / 0.9576 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.7125, allocations: 5.375 kB / 0.9576 GB, free: 4.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003233/0.7129, allocations: 38.38 kB / 0.9576 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.7129, allocations: 6.703 kB / 0.9576 GB, free: 4.863 MB / 0.7169 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 6.842e-05/0.713, allocations: 115.6 kB / 0.9577 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.653e-05/0.713, allocations: 1.531 kB / 0.9577 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001266/0.7142, allocations: 229.4 kB / 0.9579 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.7143, allocations: 2.312 kB / 0.9579 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.7143, allocations: 0 / 0.9579 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.7143, allocations: 7.938 kB / 0.958 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001441/0.7157, allocations: 454.4 kB / 0.9584 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.7157, allocations: 0 / 0.9584 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003647/0.7161, allocations: 49.09 kB / 0.9584 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.7161, allocations: 0 / 0.9584 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.7161, allocations: 5.359 kB / 0.9584 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.7162, allocations: 1.375 kB / 0.9584 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.7162, allocations: 7.891 kB / 0.9584 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.7174, allocations: 305.7 kB / 0.9587 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.622e-05/0.7174, allocations: 81.02 kB / 0.9588 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.7174, allocations: 1.031 kB / 0.9588 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003446/0.7178, allocations: 39.23 kB / 0.9589 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.702e-05/0.7178, allocations: 5.328 kB / 0.9589 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/0.7178, allocations: 5.484 kB / 0.9589 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.56e-05/0.7178, allocations: 75.28 kB / 0.9589 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7178, allocations: 1.5 kB / 0.9589 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002581/0.7181, allocations: 12.88 kB / 0.9589 GB, free: 3.871 MB / 0.7169 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.001412/0.7195, allocations: 0.8373 MB / 0.9598 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.001154/0.7207, allocations: 176.9 kB / 0.9599 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.7207, allocations: 3.938 kB / 0.9599 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0005567/0.7213, allocations: 96.64 kB / 0.96 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001348/0.7214, allocations: 5.312 kB / 0.96 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.7226, allocations: 243.7 kB / 0.9603 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.23e-05/0.7227, allocations: 0.6782 MB / 0.9609 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.000215/0.7229, allocations: 33.08 kB / 0.961 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.637e-05/0.723, allocations: 10.19 kB / 0.961 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of SimCode: time 4.7e-07/0.723, allocations: 0 / 0.961 GB, free: 2.172 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01045/0.7334, allocations: 1.434 MB / 0.9624 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001448/0.7336, allocations: 198.9 kB / 0.9626 GB, free: 1.266 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.532/2.266, allocations: 4 kB / 0.9626 GB, free: 1.262 MB / 0.7169 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