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.006277/0.006277, allocations: 99.64 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.001266/0.001267, allocations: 192.1 kB / 16.67 MB, free: 5.961 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002695/0.002695, allocations: 286.2 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9839/0.9839, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002616/0.002616, allocations: 95.86 kB / 0.681 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4428/0.4454, allocations: 86.98 MB / 0.7659 GB, free: 3.84 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.SmoothBlocks): time 0.003165/0.4486, allocations: 1.758 MB / 0.7676 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001242/0.4499, allocations: 0.6532 MB / 0.7683 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.559e-05/0.45, allocations: 4 kB / 0.7683 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 4.128e-05/0.45, allocations: 15.8 kB / 0.7683 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 7.016e-05/0.4501, allocations: 11.81 kB / 0.7683 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000618/0.4507, allocations: 176.5 kB / 0.7685 GB, free: 1.207 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.4509, allocations: 127.7 kB / 0.7686 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.4511, allocations: 52.64 kB / 0.7686 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001282/0.4512, allocations: 63.77 kB / 0.7687 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.512e-05/0.4513, allocations: 59.69 kB / 0.7688 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.033e-05/0.4514, allocations: 8 kB / 0.7688 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001269/0.4515, allocations: 43.97 kB / 0.7688 GB, free: 0.8633 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.484e-05/0.4515, allocations: 31.91 kB / 0.7688 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.386e-05/0.4516, allocations: 51.72 kB / 0.7689 GB, free: 0.7812 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002491/0.4519, allocations: 160.6 kB / 0.769 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.4519, allocations: 0 / 0.769 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.326e-06/0.4519, allocations: 4 kB / 0.7691 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.009e-05/0.4519, allocations: 0 / 0.7691 GB, free: 0.625 MB / 0.5294 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.0006492/0.4526, allocations: 438.8 kB / 0.7695 GB, free: 152 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.4526, allocations: 8.031 kB / 0.7695 GB, free: 144 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.488e-05/0.4526, allocations: 38.75 kB / 0.7695 GB, free: 96 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008053/0.4535, allocations: 120.7 kB / 0.7696 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.4537, allocations: 184.2 kB / 0.7698 GB, free: 15.76 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001769/0.4539, allocations: 67.95 kB / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.251e-05/0.4539, allocations: 4.375 kB / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005232/0.4544, allocations: 179.9 kB / 0.77 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.4544, allocations: 0 / 0.77 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.4545, allocations: 0 / 0.77 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.94e-06/0.4545, allocations: 0 / 0.77 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006207/0.4551, allocations: 163.8 kB / 0.7702 GB, free: 15.34 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.4562, allocations: 478 kB / 0.7707 GB, free: 14.82 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.4573, allocations: 226.3 kB / 0.7709 GB, free: 14.59 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003065/0.4576, allocations: 80.91 kB / 0.771 GB, free: 14.51 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.4576, allocations: 7.984 kB / 0.771 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.4577, allocations: 30.56 kB / 0.771 GB, free: 14.46 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.4577, allocations: 0 / 0.771 GB, free: 14.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.001053/0.4587, allocations: 261.3 kB / 0.7712 GB, free: 14.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.4588, allocations: 59.34 kB / 0.7713 GB, free: 14.13 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.4589, allocations: 135.9 kB / 0.7714 GB, free: 13.99 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.866e-05/0.459, allocations: 29.7 kB / 0.7715 GB, free: 13.95 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.908e-05/0.4591, allocations: 116.2 kB / 0.7716 GB, free: 13.83 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.912e-05/0.4591, allocations: 23.86 kB / 0.7716 GB, free: 13.81 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.248e-05/0.4592, allocations: 25.7 kB / 0.7716 GB, free: 13.78 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002138/0.4594, allocations: 318.8 kB / 0.7719 GB, free: 13.46 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.4597, allocations: 75.92 kB / 0.772 GB, free: 13.38 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003232/0.46, allocations: 94.5 kB / 0.7721 GB, free: 13.28 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006796/0.4607, allocations: 166.4 kB / 0.7722 GB, free: 13.11 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.4607, allocations: 0 / 0.7722 GB, free: 13.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007964/0.4615, allocations: 197.4 kB / 0.7724 GB, free: 12.91 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.4616, allocations: 8 kB / 0.7724 GB, free: 12.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.4616, allocations: 11.94 kB / 0.7724 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.4616, allocations: 0 / 0.7724 GB, free: 12.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.4619, allocations: 36.27 kB / 0.7725 GB, free: 12.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.4619, allocations: 0 / 0.7725 GB, free: 12.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001938/0.4621, allocations: 31.91 kB / 0.7725 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.4621, allocations: 7.984 kB / 0.7725 GB, free: 12.82 MB / 0.545 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 0.0001588/0.4623, allocations: 117.8 kB / 0.7726 GB, free: 12.69 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.207e-05/0.4623, allocations: 11.89 kB / 0.7726 GB, free: 12.68 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007442/0.4631, allocations: 202.2 kB / 0.7728 GB, free: 12.48 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.4631, allocations: 8 kB / 0.7728 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.4631, allocations: 0 / 0.7728 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.4631, allocations: 0 / 0.7728 GB, free: 12.47 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004021/0.4635, allocations: 234.4 kB / 0.7731 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4635, allocations: 3.938 kB / 0.7731 GB, free: 12.18 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002198/0.4637, allocations: 31.95 kB / 0.7731 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.4638, allocations: 0 / 0.7731 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.4638, allocations: 3.938 kB / 0.7731 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.4638, allocations: 0 / 0.7731 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.4638, allocations: 0 / 0.7731 GB, free: 12.15 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007039/0.4645, allocations: 287.3 kB / 0.7734 GB, free: 11.85 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.552e-05/0.4646, allocations: 85.06 kB / 0.7735 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.561e-05/0.4646, allocations: 7.922 kB / 0.7735 GB, free: 11.74 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/0.4649, allocations: 35.95 kB / 0.7735 GB, free: 11.71 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.465, allocations: 4 kB / 0.7735 GB, free: 11.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.465, allocations: 7.984 kB / 0.7735 GB, free: 11.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.311e-05/0.4651, allocations: 105.2 kB / 0.7736 GB, free: 11.59 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4651, allocations: 0 / 0.7736 GB, free: 11.59 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002598/0.4653, allocations: 31.89 kB / 0.7736 GB, free: 11.56 MB / 0.545 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.001245/0.4666, allocations: 0.8177 MB / 0.7744 GB, free: 10.72 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006759/0.4673, allocations: 168 kB / 0.7746 GB, free: 10.55 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.4673, allocations: 0 / 0.7746 GB, free: 10.55 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003072/0.4676, allocations: 87.98 kB / 0.7747 GB, free: 10.47 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000343/0.468, allocations: 8 kB / 0.7747 GB, free: 10.46 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.4713, allocations: 1.839 MB / 0.7765 GB, free: 8.531 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.4718, allocations: 0.7002 MB / 0.7772 GB, free: 7.805 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001015/0.4719, allocations: 19.94 kB / 0.7772 GB, free: 7.785 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001036/0.472, allocations: 31.42 kB / 0.7772 GB, free: 7.754 MB / 0.545 GB Notification: Performance of SimCode: time 7.91e-07/0.472, allocations: 0 / 0.7772 GB, free: 7.754 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.4963, allocations: 2.759 MB / 0.7799 GB, free: 5.105 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.811/8.307, allocations: 3.781 kB / 0.7799 GB, free: 5.102 MB / 0.545 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)