Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration.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.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_TrapezoidalIntegration",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.001307/0.001307, allocations: 108 kB / 15.61 MB, free: 152 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.001174/0.001174, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9505/0.9505, allocations: 135.1 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 76.44 kB / 0.5055 GB, free: 5.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1441, allocations: 80.92 MB / 0.5845 GB, free: 4.48 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001786/0.1459, allocations: 0.5804 MB / 0.585 GB, free: 3.898 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002119/0.1462, allocations: 35.88 kB / 0.5851 GB, free: 3.863 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.77e-05/0.1462, allocations: 0 / 0.5851 GB, free: 3.863 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.382e-05/0.1462, allocations: 0 / 0.5851 GB, free: 3.863 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.384e-05/0.1463, allocations: 4 kB / 0.5851 GB, free: 3.859 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001784/0.1465, allocations: 19.92 kB / 0.5851 GB, free: 3.84 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.209e-05/0.1465, allocations: 0 / 0.5851 GB, free: 3.84 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.011e-05/0.1466, allocations: 4 kB / 0.5851 GB, free: 3.836 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.694e-05/0.1466, allocations: 0 / 0.5851 GB, free: 3.836 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.598e-05/0.1466, allocations: 7.922 kB / 0.5851 GB, free: 3.828 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.268e-05/0.1467, allocations: 3.938 kB / 0.5851 GB, free: 3.824 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.14e-05/0.1468, allocations: 27.97 kB / 0.5851 GB, free: 3.797 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.561e-05/0.1468, allocations: 0 / 0.5851 GB, free: 3.797 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.559e-05/0.1468, allocations: 7.938 kB / 0.5852 GB, free: 3.789 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.172e-05/0.1469, allocations: 19.98 kB / 0.5852 GB, free: 3.77 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1469, allocations: 7.938 kB / 0.5852 GB, free: 3.762 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.147, allocations: 0 / 0.5852 GB, free: 3.762 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.147, allocations: 0 / 0.5852 GB, free: 3.762 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000293/0.1473, allocations: 349.3 kB / 0.5855 GB, free: 3.363 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.1473, allocations: 12.03 kB / 0.5855 GB, free: 3.352 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.061e-05/0.1473, allocations: 30.75 kB / 0.5856 GB, free: 3.312 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.534e-05/0.1474, allocations: 4.844 kB / 0.5856 GB, free: 3.309 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.476e-05/0.1475, allocations: 172.6 kB / 0.5857 GB, free: 3.102 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.1475, allocations: 4.312 kB / 0.5857 GB, free: 3.098 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.636e-06/0.1475, allocations: 4.375 kB / 0.5857 GB, free: 3.094 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000151/0.1477, allocations: 58.23 kB / 0.5858 GB, free: 3.031 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.1477, allocations: 3.938 kB / 0.5858 GB, free: 3.027 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.1477, allocations: 0 / 0.5858 GB, free: 3.027 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.372e-05/0.1477, allocations: 12 kB / 0.5858 GB, free: 3.016 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.661e-05/0.1478, allocations: 23.98 kB / 0.5858 GB, free: 2.992 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004485/0.1482, allocations: 260.8 kB / 0.5861 GB, free: 2.688 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.971e-05/0.1483, allocations: 30.52 kB / 0.5861 GB, free: 2.648 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.626e-05/0.1483, allocations: 4.859 kB / 0.5861 GB, free: 2.641 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.057e-06/0.1484, allocations: 0 / 0.5861 GB, free: 2.641 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.1484, allocations: 42.61 kB / 0.5861 GB, free: 2.59 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1484, allocations: 0 / 0.5861 GB, free: 2.59 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001966/0.1486, allocations: 59.41 kB / 0.5862 GB, free: 2.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/0.1487, allocations: 77.11 kB / 0.5863 GB, free: 2.426 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.1488, allocations: 129.9 kB / 0.5864 GB, free: 2.289 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.1488, allocations: 25.7 kB / 0.5864 GB, free: 2.258 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.474e-05/0.1489, allocations: 95.8 kB / 0.5865 GB, free: 2.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.022e-05/0.1489, allocations: 7.906 kB / 0.5865 GB, free: 2.152 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.532e-05/0.1489, allocations: 25.7 kB / 0.5865 GB, free: 2.121 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.1491, allocations: 318.8 kB / 0.5869 GB, free: 1.801 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.633e-05/0.1491, allocations: 8 kB / 0.5869 GB, free: 1.793 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.251e-05/0.1492, allocations: 62.92 kB / 0.5869 GB, free: 1.707 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.1493, allocations: 134.1 kB / 0.587 GB, free: 1.539 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1493, allocations: 0 / 0.587 GB, free: 1.539 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001598/0.1494, allocations: 119.2 kB / 0.5872 GB, free: 1.41 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.9e-05/0.1495, allocations: 37.7 kB / 0.5872 GB, free: 1.367 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1495, allocations: 8.188 kB / 0.5872 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.1495, allocations: 4 kB / 0.5872 GB, free: 1.355 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.8e-05/0.1496, allocations: 15.94 kB / 0.5872 GB, free: 1.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.1496, allocations: 0 / 0.5872 GB, free: 1.34 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.954e-05/0.1497, allocations: 11.84 kB / 0.5872 GB, free: 1.328 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.286e-05/0.1497, allocations: 15.94 kB / 0.5873 GB, free: 1.312 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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): 7 * Array equations: 0 * Algorithm blocks: 1 * 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.0001157/0.1499, allocations: 147.5 kB / 0.5874 GB, free: 1.152 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.745e-05/0.1499, allocations: 0 / 0.5874 GB, free: 1.152 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.192e-05/0.1499, allocations: 7.531 kB / 0.5874 GB, free: 1.141 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1499, allocations: 7.984 kB / 0.5874 GB, free: 1.133 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1499, allocations: 0 / 0.5874 GB, free: 1.133 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.265e-06/0.1499, allocations: 0 / 0.5874 GB, free: 1.133 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.1501, allocations: 157.6 kB / 0.5876 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.1501, allocations: 0 / 0.5876 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1501, allocations: 0 / 0.5876 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.319e-06/0.1501, allocations: 7.984 kB / 0.5876 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.361e-06/0.1501, allocations: 0 / 0.5876 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1501, allocations: 0 / 0.5876 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.1501, allocations: 0 / 0.5876 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000115/0.1502, allocations: 169.1 kB / 0.5877 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.304e-05/0.1503, allocations: 81.09 kB / 0.5878 GB, free: 0.6367 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.392e-05/0.1503, allocations: 4 kB / 0.5878 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.942e-05/0.1504, allocations: 0 / 0.5878 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.155e-05/0.1504, allocations: 3.938 kB / 0.5878 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/0.1504, allocations: 4 kB / 0.5878 GB, free: 0.625 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.249e-05/0.1504, allocations: 95.2 kB / 0.5879 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1505, allocations: 0 / 0.5879 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002556/0.1507, allocations: 12.03 kB / 0.5879 GB, free: 0.5195 MB / 494.1 MB 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0004137/0.1511, allocations: 0.6947 MB / 0.5886 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001244/0.1513, allocations: 83.8 kB / 0.5887 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1513, allocations: 8 kB / 0.5887 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.116e-05/0.1513, allocations: 63.39 kB / 0.5887 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.1515, allocations: 4 kB / 0.5887 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003743/0.1519, allocations: 146.4 kB / 0.5889 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.1521, allocations: 0.6845 MB / 0.5896 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.084e-05/0.1522, allocations: 16.03 kB / 0.5896 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.166e-05/0.1523, allocations: 11.44 kB / 0.5896 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of SimCode: time 3.61e-07/0.1523, allocations: 0 / 0.5896 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01641/0.1687, allocations: 1.392 MB / 0.5909 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.092/7.261, allocations: 9.078 kB / 0.591 GB, free: 13.39 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration_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_Functions_Examples_TrapezoidalIntegration.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)