Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 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.Examples.SmoothHeaviside,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.SmoothHeaviside,fileNamePrefix="Buildings_9_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.001141/0.001141, 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.001321/0.00132, 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.491/1.491, allocations: 223.2 MB / 239.9 MB, free: 5.43 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.511/2.511, allocations: 390.3 MB / 0.6653 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003655/0.0003655, allocations: 8 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9379/0.9383, allocations: 142.3 MB / 0.9536 GB, free: 8.074 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.SmoothHeaviside): time 0.002012/0.9404, allocations: 1.15 MB / 0.9547 GB, free: 7.16 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009111/0.9413, allocations: 430.1 kB / 0.9551 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.991e-05/0.9414, allocations: 0 / 0.9551 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.945e-05/0.9414, allocations: 7.938 kB / 0.9551 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.846e-05/0.9415, allocations: 9.219 kB / 0.9551 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.9418, allocations: 14 kB / 0.9552 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.958e-05/0.9419, allocations: 16.88 kB / 0.9552 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.942, allocations: 2.719 kB / 0.9552 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.747e-05/0.9421, allocations: 12.14 kB / 0.9552 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.714e-05/0.9422, allocations: 7.531 kB / 0.9552 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.445e-05/0.9422, allocations: 1.5 kB / 0.9552 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.826e-05/0.9423, allocations: 28.02 kB / 0.9552 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.129e-05/0.9423, allocations: 4 kB / 0.9552 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.463e-05/0.9424, allocations: 31.86 kB / 0.9553 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.942e-05/0.9425, allocations: 18.22 kB / 0.9553 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.9425, allocations: 0 / 0.9553 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.675e-06/0.9425, allocations: 0 / 0.9553 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.846e-06/0.9425, allocations: 1.031 kB / 0.9553 GB, free: 6.719 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.0004502/0.943, allocations: 342.8 kB / 0.9556 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.099e-05/0.943, allocations: 8.5 kB / 0.9556 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.295e-05/0.9431, allocations: 35.69 kB / 0.9556 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.732e-05/0.9431, allocations: 5.797 kB / 0.9556 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.991e-05/0.9432, allocations: 171.9 kB / 0.9558 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.9432, allocations: 8.859 kB / 0.9558 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.9432, allocations: 2.031 kB / 0.9558 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001778/0.9434, allocations: 49.19 kB / 0.9559 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.9434, allocations: 0 / 0.9559 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.9435, allocations: 9.266 kB / 0.9559 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.9435, allocations: 0 / 0.9559 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.9437, allocations: 52.19 kB / 0.9559 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000301/0.944, allocations: 250.6 kB / 0.9562 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001274/0.9441, allocations: 48.22 kB / 0.9562 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001145/0.9442, allocations: 83.84 kB / 0.9563 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.9443, allocations: 31.66 kB / 0.9563 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.9443, allocations: 0 / 0.9563 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0003721/0.9446, allocations: 103.3 kB / 0.9564 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.148e-05/0.9447, allocations: 52.81 kB / 0.9565 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.604e-05/0.9447, allocations: 103.4 kB / 0.9566 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.979e-06/0.9448, allocations: 31.08 kB / 0.9566 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.603e-05/0.9448, allocations: 84.12 kB / 0.9567 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/0.9448, allocations: 9.203 kB / 0.9567 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.9448, allocations: 4 kB / 0.9567 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.674e-05/0.9449, allocations: 311.9 kB / 0.957 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.526e-05/0.945, allocations: 18.02 kB / 0.957 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.785e-05/0.9451, allocations: 26.67 kB / 0.957 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.728e-05/0.9452, allocations: 27.03 kB / 0.9571 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.9452, allocations: 0 / 0.9571 GB, free: 4.859 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000195/0.9454, allocations: 78.39 kB / 0.9571 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.9454, allocations: 5.344 kB / 0.9571 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.9454, allocations: 0 / 0.9571 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.9454, allocations: 1.156 kB / 0.9571 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.548e-05/0.9455, allocations: 15.81 kB / 0.9572 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.9455, allocations: 0 / 0.9572 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.066e-05/0.9456, allocations: 14.89 kB / 0.9572 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.9456, allocations: 1.094 kB / 0.9572 GB, free: 4.793 MB / 0.7169 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 5.418e-05/0.9457, allocations: 112 kB / 0.9573 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.302e-05/0.9457, allocations: 5.031 kB / 0.9573 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002366/0.9459, allocations: 85.28 kB / 0.9574 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.9459, allocations: 0 / 0.9574 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.946, allocations: 5.203 kB / 0.9574 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.946, allocations: 0 / 0.9574 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00012/0.9461, allocations: 158.3 kB / 0.9575 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.9461, allocations: 1.125 kB / 0.9575 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.791e-05/0.9462, allocations: 12.33 kB / 0.9575 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.9462, allocations: 4.031 kB / 0.9575 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.9462, allocations: 1.438 kB / 0.9575 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.9462, allocations: 0 / 0.9575 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.9462, allocations: 256 / 0.9575 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002207/0.9464, allocations: 181.5 kB / 0.9577 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.488e-05/0.9464, allocations: 78.2 kB / 0.9578 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.9465, allocations: 5.031 kB / 0.9578 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.597e-05/0.9466, allocations: 14.11 kB / 0.9578 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.715e-05/0.9466, allocations: 1.312 kB / 0.9578 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.9466, allocations: 4 kB / 0.9578 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.701e-05/0.9466, allocations: 83.73 kB / 0.9579 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.41e-07/0.9466, allocations: 4.031 kB / 0.9579 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002194/0.9469, allocations: 9.266 kB / 0.9579 GB, free: 4.047 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 (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.0004358/0.9473, allocations: 0.7132 MB / 0.9586 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002227/0.9475, allocations: 44 kB / 0.9586 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.9475, allocations: 96 / 0.9586 GB, free: 3.348 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.192e-05/0.9476, allocations: 32.41 kB / 0.9587 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002226/0.9479, allocations: 6.188 kB / 0.9587 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003833/0.9483, allocations: 141.5 kB / 0.9588 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001325/0.9484, allocations: 0.6861 MB / 0.9595 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.679e-05/0.9484, allocations: 1.406 kB / 0.9595 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.011e-05/0.9485, allocations: 12.03 kB / 0.9595 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.9485, allocations: 0 / 0.9595 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01073/0.9592, allocations: 1.142 MB / 0.9606 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001462/0.9594, allocations: 185.3 kB / 0.9608 GB, free: 1.672 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.622/2.582, allocations: 0 / 0.9608 GB, free: 1.672 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_SmoothHeaviside.fmu > Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Examples.SmoothHeaviside_res.mat does not exist to compare? outputFormat=mat