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.001555/0.001555, 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.00168/0.001681, allocations: 194 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.395/1.395, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7577/0.7577, allocations: 132.2 MB / 422.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 63.5 kB / 0.5019 GB, free: 3.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.371, allocations: 80.2 MB / 0.5802 GB, free: 4.441 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001636/0.3727, allocations: 0.5879 MB / 0.5808 GB, free: 4.07 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002073/0.3729, allocations: 29.77 kB / 0.5808 GB, free: 4.055 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.803e-05/0.3729, allocations: 1.062 kB / 0.5808 GB, free: 4.055 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.651e-05/0.373, allocations: 0 / 0.5808 GB, free: 4.055 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.003e-05/0.373, allocations: 8.641 kB / 0.5808 GB, free: 4.047 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001767/0.3732, allocations: 11.98 kB / 0.5808 GB, free: 4.043 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 6.291e-05/0.3733, allocations: 4.703 kB / 0.5808 GB, free: 4.043 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.646e-05/0.3733, allocations: 1.906 kB / 0.5808 GB, free: 4.043 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.73e-05/0.3733, allocations: 5.969 kB / 0.5808 GB, free: 4.039 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.892e-05/0.3733, allocations: 9.656 kB / 0.5808 GB, free: 4.031 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.096e-05/0.3734, allocations: 0 / 0.5808 GB, free: 4.031 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.275e-05/0.3735, allocations: 16.8 kB / 0.5809 GB, free: 4.027 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.66e-05/0.3735, allocations: 2.984 kB / 0.5809 GB, free: 4.027 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.202e-05/0.3735, allocations: 6.359 kB / 0.5809 GB, free: 4.023 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 8.725e-05/0.3736, allocations: 21.86 kB / 0.5809 GB, free: 4.016 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.3736, allocations: 0.6562 kB / 0.5809 GB, free: 4.016 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3736, allocations: 3.938 kB / 0.5809 GB, free: 4.012 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.638e-06/0.3736, allocations: 0.8125 kB / 0.5809 GB, free: 4.012 MB / 430.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.0002311/0.3739, allocations: 358.7 kB / 0.5812 GB, free: 3.617 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.3739, allocations: 10.53 kB / 0.5812 GB, free: 3.617 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.152e-05/0.3739, allocations: 32.77 kB / 0.5813 GB, free: 3.578 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.512e-05/0.374, allocations: 10.16 kB / 0.5813 GB, free: 3.57 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.753e-05/0.374, allocations: 164.8 kB / 0.5814 GB, free: 3.375 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.374, allocations: 1.844 kB / 0.5814 GB, free: 3.375 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.668e-06/0.374, allocations: 0.9688 kB / 0.5814 GB, free: 3.375 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.3742, allocations: 59.86 kB / 0.5815 GB, free: 3.336 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.493e-06/0.3742, allocations: 3.938 kB / 0.5815 GB, free: 3.332 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.3742, allocations: 4.641 kB / 0.5815 GB, free: 3.328 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.25e-05/0.3742, allocations: 11.05 kB / 0.5815 GB, free: 3.324 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.813e-05/0.3743, allocations: 27.19 kB / 0.5815 GB, free: 3.316 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002434/0.3745, allocations: 265.6 kB / 0.5818 GB, free: 3.035 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.827e-05/0.3746, allocations: 21.92 kB / 0.5818 GB, free: 3.008 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.484e-05/0.3746, allocations: 7.438 kB / 0.5818 GB, free: 3 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.251e-06/0.3746, allocations: 0.5156 kB / 0.5818 GB, free: 3 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.553e-05/0.3746, allocations: 35.44 kB / 0.5819 GB, free: 2.957 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.3746, allocations: 0.9375 kB / 0.5819 GB, free: 2.957 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001411/0.3748, allocations: 68.05 kB / 0.5819 GB, free: 2.891 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.212e-05/0.3748, allocations: 78.08 kB / 0.582 GB, free: 2.797 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.171e-05/0.3749, allocations: 124 kB / 0.5821 GB, free: 2.684 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.662e-06/0.3749, allocations: 29.64 kB / 0.5822 GB, free: 2.648 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.853e-05/0.3749, allocations: 96.95 kB / 0.5822 GB, free: 2.555 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.406e-06/0.3749, allocations: 13.89 kB / 0.5823 GB, free: 2.543 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.399e-05/0.375, allocations: 26.56 kB / 0.5823 GB, free: 2.52 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.629e-05/0.375, allocations: 317.4 kB / 0.5826 GB, free: 2.203 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.549e-05/0.375, allocations: 14.06 kB / 0.5826 GB, free: 2.199 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.128e-05/0.3751, allocations: 57.34 kB / 0.5827 GB, free: 2.133 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.331e-05/0.3752, allocations: 127.8 kB / 0.5828 GB, free: 1.992 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3752, allocations: 5.094 kB / 0.5828 GB, free: 1.988 MB / 430.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001337/0.3753, allocations: 120.2 kB / 0.5829 GB, free: 1.902 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3753, allocations: 32.19 kB / 0.5829 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3754, allocations: 1.844 kB / 0.5829 GB, free: 1.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.3754, allocations: 11.19 kB / 0.5829 GB, free: 1.863 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.336e-05/0.3754, allocations: 11.8 kB / 0.5829 GB, free: 1.863 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.3755, allocations: 7.328 kB / 0.583 GB, free: 1.859 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.456e-05/0.3755, allocations: 12.8 kB / 0.583 GB, free: 1.852 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.3755, allocations: 8.969 kB / 0.583 GB, free: 1.848 MB / 430.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 5.451e-05/0.3756, allocations: 143.2 kB / 0.5831 GB, free: 1.699 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.618e-05/0.3756, allocations: 2.328 kB / 0.5831 GB, free: 1.699 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.708e-06/0.3756, allocations: 5.922 kB / 0.5831 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.3757, allocations: 0.6875 kB / 0.5831 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.3757, allocations: 0.75 kB / 0.5831 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-06/0.3757, allocations: 1.094 kB / 0.5831 GB, free: 1.695 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.3758, allocations: 156.8 kB / 0.5833 GB, free: 1.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3758, allocations: 4.562 kB / 0.5833 GB, free: 1.496 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.81e-07/0.3758, allocations: 0.7812 kB / 0.5833 GB, free: 1.496 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3758, allocations: 0.6562 kB / 0.5833 GB, free: 1.496 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.971e-06/0.3758, allocations: 1.594 kB / 0.5833 GB, free: 1.496 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.3758, allocations: 0 / 0.5833 GB, free: 1.496 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3758, allocations: 1.297 kB / 0.5833 GB, free: 1.496 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.086e-05/0.3759, allocations: 172.3 kB / 0.5834 GB, free: 1.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.557e-05/0.3759, allocations: 82.55 kB / 0.5835 GB, free: 1.223 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.3759, allocations: 2.531 kB / 0.5835 GB, free: 1.223 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.549e-05/0.376, allocations: 0.6875 kB / 0.5835 GB, free: 1.223 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.568e-05/0.376, allocations: 2.844 kB / 0.5835 GB, free: 1.223 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.376, allocations: 0.9688 kB / 0.5835 GB, free: 1.223 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.243e-05/0.3761, allocations: 94.41 kB / 0.5836 GB, free: 1.141 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3761, allocations: 0 / 0.5836 GB, free: 1.141 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000264/0.3763, allocations: 9.344 kB / 0.5836 GB, free: 1.141 MB / 430.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.0002587/0.3766, allocations: 0.7021 MB / 0.5843 GB, free: 452 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001121/0.3767, allocations: 92.03 kB / 0.5844 GB, free: 372 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3767, allocations: 0 / 0.5844 GB, free: 372 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 2.028e-05/0.3768, allocations: 58 kB / 0.5845 GB, free: 308 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002034/0.377, allocations: 7.453 kB / 0.5845 GB, free: 304 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003177/0.3773, allocations: 146.8 kB / 0.5846 GB, free: 148 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.3776, allocations: 0.6783 MB / 0.5853 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.66e-05/0.3776, allocations: 15.16 kB / 0.5853 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.848e-05/0.3777, allocations: 10.25 kB / 0.5853 GB, free: 15.44 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3777, allocations: 4 kB / 0.5853 GB, free: 15.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01619/0.3939, allocations: 1.4 MB / 0.5867 GB, free: 15.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.143/7.537, allocations: 18.59 kB / 0.5867 GB, free: 15.09 MB / 446.1 MB (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)