Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.SmoothBlocks,fileNamePrefix="IDEAS_dev_IDEAS_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.001132/0.001132, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 197.7 kB / 16.54 MB, free: 6.672 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.327/1.327, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9662/0.9662, allocations: 135.1 MB / 425.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002141/0.002141, allocations: 68.56 kB / 0.5054 GB, free: 5.227 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.1561, allocations: 80.92 MB / 0.5845 GB, free: 4.457 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.SmoothBlocks): time 0.003573/0.1598, allocations: 1.763 MB / 0.5862 GB, free: 2.676 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.1612, allocations: 0.6554 MB / 0.5868 GB, free: 2.012 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.233e-05/0.1613, allocations: 4 kB / 0.5868 GB, free: 2.008 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 5.076e-05/0.1614, allocations: 11.86 kB / 0.5868 GB, free: 1.996 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.644e-05/0.1615, allocations: 11.81 kB / 0.5869 GB, free: 1.984 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006388/0.1621, allocations: 174.6 kB / 0.587 GB, free: 1.816 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001784/0.1623, allocations: 123.6 kB / 0.5871 GB, free: 1.695 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.1625, allocations: 53.08 kB / 0.5872 GB, free: 1.645 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001509/0.1627, allocations: 59.78 kB / 0.5873 GB, free: 1.586 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.1628, allocations: 59.69 kB / 0.5873 GB, free: 1.527 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.278e-05/0.1628, allocations: 8 kB / 0.5873 GB, free: 1.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001302/0.1629, allocations: 47.97 kB / 0.5874 GB, free: 1.473 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.196e-05/0.163, allocations: 31.89 kB / 0.5874 GB, free: 1.441 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.524e-05/0.1631, allocations: 47.73 kB / 0.5874 GB, free: 1.395 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.1633, allocations: 143.8 kB / 0.5876 GB, free: 1.254 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1633, allocations: 4 kB / 0.5876 GB, free: 1.25 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1633, allocations: 0 / 0.5876 GB, free: 1.25 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.1633, allocations: 4 kB / 0.5876 GB, free: 1.246 MB / 494.1 MB 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.0006228/0.164, allocations: 438.9 kB / 0.588 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.834e-05/0.164, allocations: 8.031 kB / 0.588 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.764e-05/0.1641, allocations: 42.75 kB / 0.5881 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008733/0.1649, allocations: 112.6 kB / 0.5882 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.1651, allocations: 192.1 kB / 0.5883 GB, free: 384 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.504e-05/0.1652, allocations: 63.97 kB / 0.5884 GB, free: 308 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.111e-05/0.1652, allocations: 8.375 kB / 0.5884 GB, free: 300 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005078/0.1657, allocations: 173.5 kB / 0.5886 GB, free: 120 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.1657, allocations: 0 / 0.5886 GB, free: 120 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.1658, allocations: 4 kB / 0.5886 GB, free: 116 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1658, allocations: 0 / 0.5886 GB, free: 116 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000622/0.1664, allocations: 155.8 kB / 0.5887 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.1675, allocations: 485.8 kB / 0.5892 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.1686, allocations: 222.3 kB / 0.5894 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003123/0.1689, allocations: 80.91 kB / 0.5895 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.197e-05/0.1689, allocations: 3.984 kB / 0.5895 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.169, allocations: 30.56 kB / 0.5895 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.169, allocations: 0 / 0.5895 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of matching and sorting (n=6): time 0.001073/0.1701, allocations: 269.4 kB / 0.5898 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.1701, allocations: 51.41 kB / 0.5898 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.1702, allocations: 147.7 kB / 0.59 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.554e-05/0.1703, allocations: 25.7 kB / 0.59 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.029e-05/0.1703, allocations: 112.2 kB / 0.5901 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.524e-05/0.1704, allocations: 19.64 kB / 0.5901 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.683e-05/0.1704, allocations: 25.7 kB / 0.5901 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.309e-05/0.1705, allocations: 318.8 kB / 0.5904 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003182/0.1708, allocations: 79.91 kB / 0.5905 GB, free: 14 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003339/0.1712, allocations: 90.5 kB / 0.5906 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006218/0.1718, allocations: 162.4 kB / 0.5908 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1718, allocations: 3.984 kB / 0.5908 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0007011/0.1725, allocations: 205.3 kB / 0.591 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.1726, allocations: 8 kB / 0.591 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1726, allocations: 7.922 kB / 0.591 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.1726, allocations: 0 / 0.591 GB, free: 13.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002817/0.1729, allocations: 35.95 kB / 0.591 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1729, allocations: 4.141 kB / 0.591 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.1731, allocations: 27.97 kB / 0.591 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.1731, allocations: 4.312 kB / 0.591 GB, free: 13.44 MB / 0.4981 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.0001069/0.1733, allocations: 121.8 kB / 0.5912 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.609e-05/0.1733, allocations: 7.906 kB / 0.5912 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007346/0.174, allocations: 214.2 kB / 0.5914 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.1741, allocations: 0 / 0.5914 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1741, allocations: 0 / 0.5914 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.1741, allocations: 0 / 0.5914 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002423/0.1743, allocations: 242.1 kB / 0.5916 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1743, allocations: 0 / 0.5916 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002343/0.1746, allocations: 31.95 kB / 0.5916 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1746, allocations: 7.984 kB / 0.5916 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.1746, allocations: 3.938 kB / 0.5916 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1746, allocations: 4 kB / 0.5916 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1746, allocations: 0 / 0.5916 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007264/0.1754, allocations: 291.2 kB / 0.5919 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.369e-05/0.1754, allocations: 85.02 kB / 0.592 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.694e-05/0.1754, allocations: 3.938 kB / 0.592 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/0.1758, allocations: 31.95 kB / 0.592 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.5e-05/0.1758, allocations: 3.984 kB / 0.592 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.1758, allocations: 11.98 kB / 0.5921 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.756e-05/0.1759, allocations: 105.8 kB / 0.5922 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/0.1759, allocations: 0 / 0.5922 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002724/0.1762, allocations: 24 kB / 0.5922 GB, free: 12.18 MB / 0.4981 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.00103/0.1772, allocations: 0.8215 MB / 0.593 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0006926/0.1779, allocations: 163.8 kB / 0.5931 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1779, allocations: 4.125 kB / 0.5931 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003151/0.1783, allocations: 80.23 kB / 0.5932 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003459/0.1786, allocations: 7.938 kB / 0.5932 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003124/0.1817, allocations: 1.843 MB / 0.595 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002539/0.182, allocations: 0.7002 MB / 0.5957 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.759e-05/0.1821, allocations: 16 kB / 0.5957 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.951e-05/0.1822, allocations: 31.42 kB / 0.5958 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of SimCode: time 5.81e-07/0.1822, allocations: 0 / 0.5958 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01765/0.1999, allocations: 2.7 MB / 0.5984 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.575/7.775, allocations: 14.77 kB / 0.5984 GB, free: 5.75 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.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 IDEAS_dev_IDEAS_Utilities_Math_Examples_SmoothBlocks.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.SmoothBlocks.pipe 2>&1)