Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="IDEAS_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.005086/0.005086, allocations: 97.81 kB / 15.73 MB, free: 5.961 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.001271/0.001271, allocations: 195.6 kB / 16.67 MB, free: 5.883 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8576/0.8576, allocations: 132.2 MB / 422.7 MB, free: 6.57 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001781/0.001781, allocations: 72.47 kB / 0.5809 GB, free: 24.02 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1508, allocations: 80.21 MB / 0.6592 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001718/0.1526, allocations: 0.5822 MB / 0.6598 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002575/0.1528, allocations: 43.86 kB / 0.6598 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.28e-05/0.1529, allocations: 0 / 0.6598 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.324e-05/0.1529, allocations: 3.938 kB / 0.6598 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.135e-05/0.153, allocations: 0 / 0.6598 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001937/0.1532, allocations: 11.98 kB / 0.6599 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.454e-05/0.1532, allocations: 7.938 kB / 0.6599 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.981e-05/0.1533, allocations: 4 kB / 0.6599 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.931e-05/0.1533, allocations: 8 kB / 0.6599 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.921e-05/0.1534, allocations: 0 / 0.6599 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.1534, allocations: 0 / 0.6599 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 8.114e-05/0.1535, allocations: 15.98 kB / 0.6599 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.172e-05/0.1535, allocations: 4 kB / 0.6599 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.143e-05/0.1535, allocations: 15.91 kB / 0.6599 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.32e-05/0.1536, allocations: 20.2 kB / 0.6599 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1536, allocations: 0 / 0.6599 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.693e-06/0.1536, allocations: 0 / 0.6599 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.1537, allocations: 0 / 0.6599 GB, free: 10.02 MB / 0.4981 GB 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.0004152/0.1541, allocations: 361.1 kB / 0.6603 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.1541, allocations: 8.031 kB / 0.6603 GB, free: 9.605 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.618e-05/0.1542, allocations: 34.75 kB / 0.6603 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.669e-05/0.1542, allocations: 4.891 kB / 0.6603 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.1543, allocations: 170.9 kB / 0.6605 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.656e-06/0.1543, allocations: 384 / 0.6605 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.076e-05/0.1544, allocations: 4.375 kB / 0.6605 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001415/0.1545, allocations: 58.25 kB / 0.6605 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1545, allocations: 3.938 kB / 0.6605 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.634e-06/0.1545, allocations: 0 / 0.6605 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.305e-05/0.1546, allocations: 8 kB / 0.6606 GB, free: 9.277 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.995e-05/0.1546, allocations: 31.91 kB / 0.6606 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003442/0.155, allocations: 268.8 kB / 0.6608 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.041e-05/0.155, allocations: 18.58 kB / 0.6609 GB, free: 8.906 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.818e-05/0.155, allocations: 8.922 kB / 0.6609 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.896e-06/0.1551, allocations: 0 / 0.6609 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.1551, allocations: 34.56 kB / 0.6609 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1551, allocations: 3.938 kB / 0.6609 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001861/0.1553, allocations: 71.33 kB / 0.661 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.1553, allocations: 81.11 kB / 0.661 GB, free: 8.668 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.946e-05/0.1555, allocations: 113.8 kB / 0.6612 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.1555, allocations: 25.7 kB / 0.6612 GB, free: 8.516 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.829e-05/0.1555, allocations: 111.9 kB / 0.6613 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.701e-06/0.1556, allocations: 0 / 0.6613 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.588e-05/0.1556, allocations: 26.19 kB / 0.6613 GB, free: 8.371 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.1558, allocations: 322.8 kB / 0.6616 GB, free: 8.047 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.669e-05/0.1558, allocations: 8 kB / 0.6616 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.626e-05/0.1559, allocations: 62.8 kB / 0.6617 GB, free: 7.953 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.156, allocations: 134.2 kB / 0.6618 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.156, allocations: 4 kB / 0.6618 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001549/0.1562, allocations: 119.1 kB / 0.6619 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.316e-05/0.1562, allocations: 33.7 kB / 0.662 GB, free: 7.613 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1563, allocations: 3.984 kB / 0.662 GB, free: 7.609 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.1563, allocations: 4 kB / 0.662 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.475e-05/0.1563, allocations: 8 kB / 0.662 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.1564, allocations: 7.938 kB / 0.662 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.193e-05/0.1564, allocations: 8.25 kB / 0.662 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.653e-05/0.1565, allocations: 7.938 kB / 0.662 GB, free: 7.574 MB / 0.4981 GB 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.0001055/0.1566, allocations: 151.5 kB / 0.6621 GB, free: 7.41 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/0.1566, allocations: 3.953 kB / 0.6622 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.666e-05/0.1566, allocations: 7.531 kB / 0.6622 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1566, allocations: 0 / 0.6622 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.1566, allocations: 0 / 0.6622 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.1566, allocations: 0 / 0.6622 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.1568, allocations: 157.6 kB / 0.6623 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1568, allocations: 4 kB / 0.6623 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-07/0.1568, allocations: 0 / 0.6623 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.1568, allocations: 0 / 0.6623 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.1568, allocations: 4 kB / 0.6623 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.1568, allocations: 0 / 0.6623 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1568, allocations: 0 / 0.6623 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.157, allocations: 173.1 kB / 0.6625 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.843e-05/0.1571, allocations: 77.11 kB / 0.6626 GB, free: 6.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.1571, allocations: 8.016 kB / 0.6626 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.701e-05/0.1571, allocations: 8 kB / 0.6626 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.658e-05/0.1572, allocations: 0 / 0.6626 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.1572, allocations: 7.938 kB / 0.6626 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.542e-05/0.1572, allocations: 91.2 kB / 0.6627 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1572, allocations: 0 / 0.6627 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002409/0.1575, allocations: 15.94 kB / 0.6627 GB, free: 6.766 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 (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.0005182/0.158, allocations: 0.7102 MB / 0.6634 GB, free: 6.023 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001642/0.1582, allocations: 87.33 kB / 0.6635 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1582, allocations: 0 / 0.6635 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.063e-05/0.1582, allocations: 55.41 kB / 0.6635 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002039/0.1585, allocations: 0.5938 kB / 0.6635 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004078/0.1589, allocations: 146.5 kB / 0.6637 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.1592, allocations: 0.6768 MB / 0.6643 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001138/0.1593, allocations: 11.98 kB / 0.6643 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.897e-05/0.1594, allocations: 15.44 kB / 0.6643 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of SimCode: time 3.4e-07/0.1594, allocations: 0 / 0.6643 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02216/0.1815, allocations: 1.431 MB / 0.6657 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.785/7.967, allocations: 1.078 kB / 0.6657 GB, free: 3.645 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)