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.006026/0.006026, allocations: 100.8 kB / 15.73 MB, free: 6.055 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.001435/0.001435, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8594/0.8594, allocations: 135.6 MB / 426.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 69.95 kB / 0.5858 GB, free: 21.5 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1478/0.1497, allocations: 81.02 MB / 0.6649 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001802/0.1516, allocations: 0.5721 MB / 0.6655 GB, free: 5.027 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002211/0.1518, allocations: 43.88 kB / 0.6655 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.164e-05/0.1518, allocations: 0 / 0.6655 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.015e-05/0.1519, allocations: 0 / 0.6655 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.678e-05/0.1519, allocations: 0 / 0.6655 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002017/0.1521, allocations: 15.92 kB / 0.6655 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 8.698e-05/0.1522, allocations: 4 kB / 0.6655 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.658e-05/0.1523, allocations: 3.938 kB / 0.6655 GB, free: 4.961 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.459e-05/0.1523, allocations: 12 kB / 0.6655 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.84e-05/0.1524, allocations: 3.984 kB / 0.6655 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.1524, allocations: 0 / 0.6655 GB, free: 4.945 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.683e-05/0.1525, allocations: 19.97 kB / 0.6656 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.322e-05/0.1525, allocations: 4 kB / 0.6656 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.519e-05/0.1526, allocations: 7.938 kB / 0.6656 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001101/0.1527, allocations: 20.2 kB / 0.6656 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1527, allocations: 0 / 0.6656 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.943e-06/0.1527, allocations: 0 / 0.6656 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.1527, allocations: 0 / 0.6656 GB, free: 4.895 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.0004355/0.1531, allocations: 357.2 kB / 0.6659 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.1532, allocations: 9.109 kB / 0.6659 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.8e-05/0.1532, allocations: 34.75 kB / 0.666 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.912e-05/0.1533, allocations: 4.891 kB / 0.666 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.1534, allocations: 174.8 kB / 0.6661 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.1534, allocations: 384 / 0.6661 GB, free: 4.227 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.1535, allocations: 8.359 kB / 0.6662 GB, free: 4.219 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.1536, allocations: 58.25 kB / 0.6662 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.1536, allocations: 3.938 kB / 0.6662 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.323e-06/0.1536, allocations: 0 / 0.6662 GB, free: 4.152 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.25e-05/0.1537, allocations: 8 kB / 0.6662 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.485e-05/0.1537, allocations: 23.98 kB / 0.6662 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000395/0.1541, allocations: 268.7 kB / 0.6665 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.044e-05/0.1542, allocations: 18.58 kB / 0.6665 GB, free: 3.781 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.989e-05/0.1542, allocations: 8.922 kB / 0.6665 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 6.863e-06/0.1542, allocations: 0 / 0.6665 GB, free: 3.77 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.1543, allocations: 34.56 kB / 0.6666 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1543, allocations: 0 / 0.6666 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001831/0.1544, allocations: 75.28 kB / 0.6666 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.1545, allocations: 77.11 kB / 0.6667 GB, free: 3.547 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.1546, allocations: 113.8 kB / 0.6668 GB, free: 3.426 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.1546, allocations: 29.64 kB / 0.6668 GB, free: 3.391 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.891e-05/0.1547, allocations: 103.9 kB / 0.6669 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.1547, allocations: 7.953 kB / 0.6669 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.239e-05/0.1548, allocations: 26.19 kB / 0.667 GB, free: 3.246 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.155, allocations: 322.8 kB / 0.6673 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.602e-05/0.155, allocations: 8 kB / 0.6673 GB, free: 2.914 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.781e-05/0.1551, allocations: 62.92 kB / 0.6673 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.1552, allocations: 134.1 kB / 0.6675 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1552, allocations: 4 kB / 0.6675 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001662/0.1554, allocations: 123.1 kB / 0.6676 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.862e-05/0.1555, allocations: 37.69 kB / 0.6676 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.1555, allocations: 0 / 0.6676 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.1555, allocations: 4 kB / 0.6676 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.402e-05/0.1556, allocations: 11.98 kB / 0.6676 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.075e-06/0.1556, allocations: 4.469 kB / 0.6677 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.022e-05/0.1557, allocations: 8.25 kB / 0.6677 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/0.1557, allocations: 7.938 kB / 0.6677 GB, free: 2.445 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.0001195/0.1558, allocations: 155.4 kB / 0.6678 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.442e-05/0.1558, allocations: 3.953 kB / 0.6678 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.595e-05/0.1559, allocations: 11.53 kB / 0.6678 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1559, allocations: 0 / 0.6678 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.1559, allocations: 0 / 0.6678 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-06/0.1559, allocations: 0 / 0.6678 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001762/0.1561, allocations: 157.6 kB / 0.668 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1561, allocations: 4 kB / 0.668 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.1561, allocations: 3.938 kB / 0.668 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.282e-06/0.1561, allocations: 0 / 0.668 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.1561, allocations: 7.984 kB / 0.668 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.1561, allocations: 0 / 0.668 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1561, allocations: 0 / 0.668 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000172/0.1563, allocations: 165.1 kB / 0.6682 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.111e-05/0.1563, allocations: 81.09 kB / 0.6682 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.29e-05/0.1564, allocations: 4.031 kB / 0.6682 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.437e-05/0.1564, allocations: 4 kB / 0.6682 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.253e-05/0.1564, allocations: 0 / 0.6682 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.1565, allocations: 0 / 0.6682 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.72e-05/0.1565, allocations: 103.1 kB / 0.6683 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1565, allocations: 0 / 0.6683 GB, free: 1.652 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002372/0.1568, allocations: 12 kB / 0.6683 GB, free: 1.641 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.000657/0.1574, allocations: 0.7024 MB / 0.669 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001422/0.1576, allocations: 91.27 kB / 0.6691 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1576, allocations: 0 / 0.6691 GB, free: 0.8047 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 4.041e-05/0.1576, allocations: 55.41 kB / 0.6692 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002006/0.1578, allocations: 6.453 kB / 0.6692 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004353/0.1583, allocations: 146.5 kB / 0.6693 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.1587, allocations: 0.6807 MB / 0.67 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001236/0.1588, allocations: 11.73 kB / 0.67 GB, free: 15.83 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.76e-05/0.1589, allocations: 15.42 kB / 0.67 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of SimCode: time 3.61e-07/0.1589, allocations: 0 / 0.67 GB, free: 15.82 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02088/0.1798, allocations: 1.431 MB / 0.6714 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.994/8.174, allocations: 15.25 kB / 0.6714 GB, free: 14.47 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)