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.00716/0.00716, allocations: 98.89 kB / 15.73 MB, free: 6.031 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.001603/0.001603, allocations: 196.5 kB / 16.67 MB, free: 5.953 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.352/1.352, 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.7651/0.7651, allocations: 132.2 MB / 422.7 MB, free: 6.555 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001193, allocations: 62.5 kB / 0.5809 GB, free: 23.99 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1381, allocations: 80.2 MB / 0.6592 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001644/0.1398, allocations: 0.581 MB / 0.6598 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002372/0.14, allocations: 39.88 kB / 0.6598 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.756e-05/0.1401, allocations: 0 / 0.6598 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.615e-05/0.1401, allocations: 0 / 0.6598 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.4e-05/0.1401, allocations: 7.984 kB / 0.6598 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001763/0.1403, allocations: 7.984 kB / 0.6598 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.776e-05/0.1404, allocations: 11.94 kB / 0.6599 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.245e-05/0.1404, allocations: 0 / 0.6599 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.752e-05/0.1405, allocations: 3.938 kB / 0.6599 GB, free: 10.03 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.673e-05/0.1405, allocations: 11.94 kB / 0.6599 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.163e-05/0.1405, allocations: 0 / 0.6599 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.918e-05/0.1406, allocations: 15.98 kB / 0.6599 GB, free: 10 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.603e-05/0.1406, allocations: 4 kB / 0.6599 GB, free: 10 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.451e-05/0.1407, allocations: 11.92 kB / 0.6599 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.064e-05/0.1408, allocations: 24.19 kB / 0.6599 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1408, allocations: 0 / 0.6599 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1408, allocations: 0 / 0.6599 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.1408, allocations: 0 / 0.6599 GB, free: 9.965 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.0003043/0.1411, allocations: 353.2 kB / 0.6603 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.1411, allocations: 12.03 kB / 0.6603 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.18e-05/0.1412, allocations: 34.75 kB / 0.6603 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.696e-05/0.1412, allocations: 8.891 kB / 0.6603 GB, free: 9.5 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.53e-05/0.1413, allocations: 166.9 kB / 0.6605 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.1413, allocations: 4.359 kB / 0.6605 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.378e-06/0.1413, allocations: 384 / 0.6605 GB, free: 9.297 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001456/0.1415, allocations: 62.17 kB / 0.6605 GB, free: 9.23 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.956e-06/0.1415, allocations: 3.938 kB / 0.6605 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.1415, allocations: 4 kB / 0.6605 GB, free: 9.223 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.382e-05/0.1416, allocations: 8 kB / 0.6606 GB, free: 9.215 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.184e-05/0.1416, allocations: 23.98 kB / 0.6606 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003134/0.1419, allocations: 272.7 kB / 0.6608 GB, free: 8.875 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.538e-05/0.142, allocations: 22.52 kB / 0.6609 GB, free: 8.844 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.659e-05/0.142, allocations: 8.922 kB / 0.6609 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 5.771e-06/0.142, allocations: 0 / 0.6609 GB, free: 8.832 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.142, allocations: 34.56 kB / 0.6609 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.81e-07/0.1421, allocations: 0 / 0.6609 GB, free: 8.789 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001693/0.1422, allocations: 71.38 kB / 0.661 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.1423, allocations: 81.11 kB / 0.661 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.852e-05/0.1424, allocations: 109.8 kB / 0.6612 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.1424, allocations: 25.7 kB / 0.6612 GB, free: 8.461 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.425e-05/0.1424, allocations: 115.8 kB / 0.6613 GB, free: 8.344 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.603e-06/0.1425, allocations: 3.938 kB / 0.6613 GB, free: 8.34 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-05/0.1425, allocations: 26.19 kB / 0.6613 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.968e-05/0.1426, allocations: 318.8 kB / 0.6616 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.52e-05/0.1426, allocations: 12 kB / 0.6616 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.067e-05/0.1427, allocations: 58.86 kB / 0.6617 GB, free: 7.895 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001083/0.1428, allocations: 134.1 kB / 0.6618 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1428, allocations: 0 / 0.6618 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001434/0.143, allocations: 123.2 kB / 0.6619 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.092e-05/0.143, allocations: 29.7 kB / 0.662 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.143, allocations: 4 kB / 0.662 GB, free: 7.555 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.143, allocations: 7.922 kB / 0.662 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.927e-05/0.1431, allocations: 15.94 kB / 0.662 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.1431, allocations: 0 / 0.662 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.95e-05/0.1432, allocations: 12.25 kB / 0.662 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.1432, allocations: 11.94 kB / 0.662 GB, free: 7.508 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 8.926e-05/0.1433, allocations: 147.4 kB / 0.6621 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.68e-05/0.1434, allocations: 7.953 kB / 0.6622 GB, free: 7.34 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.39e-05/0.1434, allocations: 3.531 kB / 0.6622 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1434, allocations: 0 / 0.6622 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.1434, allocations: 0 / 0.6622 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.1434, allocations: 0 / 0.6622 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.1435, allocations: 161.6 kB / 0.6623 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1436, allocations: 0 / 0.6623 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.1436, allocations: 4 kB / 0.6623 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1436, allocations: 0 / 0.6623 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.1436, allocations: 0 / 0.6623 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1436, allocations: 0 / 0.6623 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1436, allocations: 0 / 0.6623 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001178/0.1437, allocations: 165.2 kB / 0.6625 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.094e-05/0.1438, allocations: 85.11 kB / 0.6626 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.347e-05/0.1438, allocations: 3.984 kB / 0.6626 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.753e-05/0.1438, allocations: 4.031 kB / 0.6626 GB, free: 6.824 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.641e-05/0.1439, allocations: 4 kB / 0.6626 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.659e-06/0.1439, allocations: 0 / 0.6626 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.654e-05/0.1439, allocations: 99.14 kB / 0.6627 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.126e-06/0.1439, allocations: 0 / 0.6627 GB, free: 6.723 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002465/0.1442, allocations: 11.94 kB / 0.6627 GB, free: 6.711 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.0004158/0.1446, allocations: 0.7095 MB / 0.6634 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001279/0.1448, allocations: 83.33 kB / 0.6634 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1448, allocations: 0 / 0.6634 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.363e-05/0.1448, allocations: 59.34 kB / 0.6635 GB, free: 5.809 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002001/0.145, allocations: 6.312 kB / 0.6635 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003404/0.1454, allocations: 146.5 kB / 0.6636 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002009/0.1456, allocations: 0.6768 MB / 0.6643 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.53e-05/0.1457, allocations: 11.98 kB / 0.6643 GB, free: 4.906 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.433e-05/0.1457, allocations: 11.44 kB / 0.6643 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.1457, allocations: 0 / 0.6643 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01568/0.1614, allocations: 1.439 MB / 0.6657 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.554/7.715, allocations: 7.797 kB / 0.6657 GB, free: 3.582 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)