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.007186/0.007186, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001449/0.00145, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.349/1.349, 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/IDEAS 3.0.0-master/package.mo): time 0.841/0.841, allocations: 135.1 MB / 425.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 67.61 kB / 0.5852 GB, free: 21.92 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1387, allocations: 80.92 MB / 0.6642 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001582/0.1403, allocations: 0.5796 MB / 0.6648 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002183/0.1406, allocations: 39.88 kB / 0.6648 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.839e-05/0.1406, allocations: 0 / 0.6648 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.359e-05/0.1406, allocations: 4 kB / 0.6648 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.284e-05/0.1407, allocations: 0 / 0.6648 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001702/0.1408, allocations: 15.98 kB / 0.6648 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.234e-05/0.1409, allocations: 0 / 0.6648 GB, free: 5.617 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.63e-05/0.141, allocations: 4 kB / 0.6648 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.86e-05/0.141, allocations: 7.938 kB / 0.6648 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.407e-05/0.141, allocations: 3.984 kB / 0.6648 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.005e-05/0.141, allocations: 0 / 0.6648 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.278e-05/0.1411, allocations: 23.91 kB / 0.6649 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.393e-05/0.1411, allocations: 4 kB / 0.6649 GB, free: 5.574 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.238e-05/0.1412, allocations: 11.94 kB / 0.6649 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.477e-05/0.1413, allocations: 20.2 kB / 0.6649 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1413, allocations: 0 / 0.6649 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.092e-06/0.1413, allocations: 0 / 0.6649 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.1413, allocations: 0 / 0.6649 GB, free: 5.543 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.000299/0.1416, allocations: 353.2 kB / 0.6652 GB, free: 5.141 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.426e-05/0.1416, allocations: 13.11 kB / 0.6652 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.901e-05/0.1417, allocations: 30.75 kB / 0.6653 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.459e-05/0.1417, allocations: 4.891 kB / 0.6653 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.419e-05/0.1418, allocations: 171 kB / 0.6654 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.885e-06/0.1418, allocations: 12.38 kB / 0.6654 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.367e-06/0.1418, allocations: 384 / 0.6654 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001137/0.1419, allocations: 58.25 kB / 0.6655 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.142, allocations: 7.875 kB / 0.6655 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.142, allocations: 0 / 0.6655 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.366e-05/0.142, allocations: 8 kB / 0.6655 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.652e-05/0.1421, allocations: 23.98 kB / 0.6655 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003072/0.1424, allocations: 264.7 kB / 0.6658 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.162e-05/0.1424, allocations: 30.56 kB / 0.6658 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.503e-05/0.1425, allocations: 4.859 kB / 0.6658 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 5.851e-06/0.1425, allocations: 0 / 0.6658 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/0.1425, allocations: 42.55 kB / 0.6659 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.1425, allocations: 0 / 0.6659 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001568/0.1427, allocations: 63.36 kB / 0.6659 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.1427, allocations: 77.23 kB / 0.666 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.296e-05/0.1428, allocations: 125.8 kB / 0.6661 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.1428, allocations: 25.7 kB / 0.6661 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.422e-05/0.1429, allocations: 95.94 kB / 0.6662 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.193e-05/0.1429, allocations: 11.95 kB / 0.6662 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-05/0.1429, allocations: 30.06 kB / 0.6663 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1431, allocations: 314.8 kB / 0.6666 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.642e-05/0.1431, allocations: 15.98 kB / 0.6666 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.364e-05/0.1432, allocations: 62.8 kB / 0.6667 GB, free: 3.469 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.1433, allocations: 130.2 kB / 0.6668 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1433, allocations: 3.938 kB / 0.6668 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001564/0.1434, allocations: 123.4 kB / 0.6669 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.1435, allocations: 37.73 kB / 0.6669 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1435, allocations: 0 / 0.6669 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.1435, allocations: 4 kB / 0.6669 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.674e-05/0.1436, allocations: 15.94 kB / 0.667 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.219e-06/0.1436, allocations: 0 / 0.667 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.565e-05/0.1437, allocations: 4 kB / 0.667 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.907e-05/0.1437, allocations: 15.92 kB / 0.667 GB, free: 3.086 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 9.121e-05/0.1438, allocations: 143.5 kB / 0.6671 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.531e-05/0.1438, allocations: 3.953 kB / 0.6671 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.066e-05/0.1438, allocations: 11.53 kB / 0.6671 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.1438, allocations: 0 / 0.6671 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.1439, allocations: 0 / 0.6671 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.003e-06/0.1439, allocations: 0 / 0.6671 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.144, allocations: 157.6 kB / 0.6673 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.144, allocations: 0 / 0.6673 GB, free: 2.711 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.144, allocations: 3.938 kB / 0.6673 GB, free: 2.707 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.144, allocations: 7.984 kB / 0.6673 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.512e-06/0.1441, allocations: 0 / 0.6673 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.1441, allocations: 0 / 0.6673 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1441, allocations: 0 / 0.6673 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001152/0.1442, allocations: 165.2 kB / 0.6674 GB, free: 2.516 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.784e-05/0.1442, allocations: 81.09 kB / 0.6675 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.1443, allocations: 8 kB / 0.6675 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.56e-05/0.1443, allocations: 3.938 kB / 0.6675 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.334e-05/0.1443, allocations: 0 / 0.6675 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.652e-06/0.1443, allocations: 4 kB / 0.6675 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.474e-05/0.1444, allocations: 99.23 kB / 0.6676 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1444, allocations: 0 / 0.6676 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002398/0.1447, allocations: 8 kB / 0.6676 GB, free: 2.297 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.0003935/0.1451, allocations: 0.7075 MB / 0.6683 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000121/0.1452, allocations: 91.36 kB / 0.6684 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1452, allocations: 0 / 0.6684 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 3.263e-05/0.1452, allocations: 59.39 kB / 0.6685 GB, free: 1.387 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001997/0.1454, allocations: 4 kB / 0.6685 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003403/0.1458, allocations: 142.4 kB / 0.6686 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002092/0.146, allocations: 0.6807 MB / 0.6693 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.024e-05/0.1461, allocations: 20.28 kB / 0.6693 GB, free: 488 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.771e-05/0.1461, allocations: 11.44 kB / 0.6693 GB, free: 476 kB / 0.4981 GB Notification: Performance of SimCode: time 3.1e-07/0.1461, allocations: 0 / 0.6693 GB, free: 476 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01669/0.1628, allocations: 1.431 MB / 0.6707 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/7.829, allocations: 14.83 kB / 0.6707 GB, free: 15.12 MB / 0.5137 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)