Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks",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.006092/0.006092, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001438/0.001438, allocations: 193.8 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.446/1.446, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002425/0.002425, allocations: 274.6 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.044/1.044, allocations: 178.6 MB / 0.5074 GB, free: 4.484 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00279/0.00279, allocations: 98.44 kB / 0.6943 GB, free: 3.617 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4659/0.4687, allocations: 89.14 MB / 0.7813 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.003348/0.4721, allocations: 1.781 MB / 0.7831 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001243/0.4734, allocations: 0.6567 MB / 0.7837 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.295e-05/0.4734, allocations: 1.281 kB / 0.7837 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 5.379e-05/0.4735, allocations: 10.41 kB / 0.7837 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 8.175e-05/0.4736, allocations: 19.67 kB / 0.7838 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005619/0.4742, allocations: 168.3 kB / 0.7839 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000175/0.4743, allocations: 121.7 kB / 0.784 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000149/0.4745, allocations: 50.22 kB / 0.7841 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.4746, allocations: 68.73 kB / 0.7842 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001025/0.4747, allocations: 46.77 kB / 0.7842 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.909e-05/0.4748, allocations: 13.78 kB / 0.7842 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.4749, allocations: 49.95 kB / 0.7843 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.561e-05/0.475, allocations: 31.73 kB / 0.7843 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.191e-05/0.475, allocations: 55.73 kB / 0.7843 GB, free: 11.86 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002443/0.4753, allocations: 149.5 kB / 0.7845 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.4753, allocations: 0 / 0.7845 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.392e-06/0.4753, allocations: 0 / 0.7845 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.745e-06/0.4753, allocations: 0 / 0.7845 GB, free: 11.8 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006458/0.476, allocations: 442 kB / 0.7849 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.476, allocations: 9.312 kB / 0.7849 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.955e-05/0.4761, allocations: 44.7 kB / 0.785 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008621/0.4769, allocations: 112.2 kB / 0.7851 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001737/0.4771, allocations: 184.7 kB / 0.7852 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.4772, allocations: 64.38 kB / 0.7853 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.555e-05/0.4773, allocations: 10.39 kB / 0.7853 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005576/0.4778, allocations: 173.3 kB / 0.7855 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.016e-06/0.4778, allocations: 1.281 kB / 0.7855 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.169e-05/0.4779, allocations: 3.984 kB / 0.7855 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.4779, allocations: 2.844 kB / 0.7855 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006452/0.4785, allocations: 161.4 kB / 0.7856 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.4797, allocations: 490.5 kB / 0.7861 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.4807, allocations: 216 kB / 0.7863 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003096/0.4811, allocations: 81.33 kB / 0.7864 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.4811, allocations: 5.797 kB / 0.7864 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.691e-05/0.4811, allocations: 32.45 kB / 0.7864 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.4811, allocations: 3.938 kB / 0.7864 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of matching and sorting (n=6): time 0.001069/0.4822, allocations: 266.3 kB / 0.7867 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.4823, allocations: 53.17 kB / 0.7867 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.4824, allocations: 145 kB / 0.7869 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.4824, allocations: 27.86 kB / 0.7869 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.866e-05/0.4825, allocations: 108.8 kB / 0.787 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.796e-05/0.4825, allocations: 25.17 kB / 0.787 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.003e-05/0.4826, allocations: 23.7 kB / 0.787 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.4827, allocations: 319.9 kB / 0.7874 GB, free: 9.695 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000326/0.4831, allocations: 78.39 kB / 0.7874 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003252/0.4834, allocations: 92.75 kB / 0.7875 GB, free: 9.637 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006142/0.484, allocations: 160.6 kB / 0.7877 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.484, allocations: 0 / 0.7877 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007062/0.4847, allocations: 205.7 kB / 0.7879 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.4848, allocations: 5.062 kB / 0.7879 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.4848, allocations: 5.656 kB / 0.7879 GB, free: 9.496 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.4848, allocations: 1.125 kB / 0.7879 GB, free: 9.496 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.4851, allocations: 43.34 kB / 0.7879 GB, free: 9.488 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.4851, allocations: 2.359 kB / 0.7879 GB, free: 9.488 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001928/0.4853, allocations: 24.92 kB / 0.7879 GB, free: 9.484 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.715e-05/0.4853, allocations: 9 kB / 0.788 GB, free: 9.48 MB / 0.5606 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 (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.593e-05/0.4854, allocations: 114 kB / 0.7881 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.262e-05/0.4854, allocations: 10.17 kB / 0.7881 GB, free: 9.359 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007448/0.4862, allocations: 210.2 kB / 0.7883 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.4862, allocations: 1.062 kB / 0.7883 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.4862, allocations: 5.062 kB / 0.7883 GB, free: 9.273 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4862, allocations: 0.7031 kB / 0.7883 GB, free: 9.273 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.4865, allocations: 240.6 kB / 0.7885 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4865, allocations: 384 / 0.7885 GB, free: 9.047 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.4868, allocations: 35.64 kB / 0.7885 GB, free: 9.043 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.4868, allocations: 5.859 kB / 0.7885 GB, free: 9.039 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.4868, allocations: 10.42 kB / 0.7886 GB, free: 9.031 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.4868, allocations: 0 / 0.7886 GB, free: 9.031 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.4868, allocations: 1.125 kB / 0.7886 GB, free: 9.031 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007383/0.4876, allocations: 282.3 kB / 0.7888 GB, free: 8.863 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.04e-05/0.4876, allocations: 83.12 kB / 0.7889 GB, free: 8.766 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/0.4876, allocations: 6.281 kB / 0.7889 GB, free: 8.762 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003069/0.488, allocations: 32.7 kB / 0.7889 GB, free: 8.758 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.353e-05/0.488, allocations: 4.828 kB / 0.7889 GB, free: 8.758 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.488, allocations: 11.47 kB / 0.789 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 7.567e-05/0.4881, allocations: 103.8 kB / 0.7891 GB, free: 8.672 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4881, allocations: 4 kB / 0.7891 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002599/0.4884, allocations: 28.33 kB / 0.7891 GB, free: 8.66 MB / 0.5606 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 (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001107/0.4895, allocations: 0.8117 MB / 0.7899 GB, free: 7.965 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007707/0.4903, allocations: 164 kB / 0.79 GB, free: 7.93 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.4903, allocations: 4.656 kB / 0.79 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003643/0.4907, allocations: 80.97 kB / 0.7901 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.491, allocations: 9.094 kB / 0.7901 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003246/0.4942, allocations: 1.831 MB / 0.7919 GB, free: 6.504 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.4946, allocations: 0.6999 MB / 0.7926 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 9.833e-05/0.4947, allocations: 17.88 kB / 0.7926 GB, free: 5.801 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.624e-05/0.4948, allocations: 32.92 kB / 0.7926 GB, free: 5.777 MB / 0.5606 GB Notification: Performance of SimCode: time 2.61e-07/0.4948, allocations: 5.125 kB / 0.7927 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.5188, allocations: 2.773 MB / 0.7954 GB, free: 4.863 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.758/8.276, allocations: 15.16 kB / 0.7954 GB, free: 4.855 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_SmoothBlocks.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)