Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial.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.Polynomial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Polynomial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Polynomial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Polynomial",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.001068/0.001068, allocations: 108 kB / 15.61 MB, free: 148 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.002273/0.002273, allocations: 194.1 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7878/0.7878, allocations: 132.2 MB / 422.6 MB, free: 1.777 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 72.97 kB / 0.5019 GB, free: 3.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3898/0.3911, allocations: 80.19 MB / 0.5802 GB, free: 4.59 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Polynomial): time 0.001702/0.3928, allocations: 0.5793 MB / 0.5808 GB, free: 4.227 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002356/0.3931, allocations: 32.72 kB / 0.5808 GB, free: 4.207 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.268e-05/0.3931, allocations: 0 / 0.5808 GB, free: 4.207 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.455e-05/0.3931, allocations: 0 / 0.5808 GB, free: 4.207 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.13e-06/0.3931, allocations: 0 / 0.5808 GB, free: 4.207 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.3934, allocations: 17.56 kB / 0.5808 GB, free: 4.199 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.223e-05/0.3934, allocations: 6.672 kB / 0.5808 GB, free: 4.195 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.626e-05/0.3935, allocations: 1.438 kB / 0.5808 GB, free: 4.195 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.307e-05/0.3935, allocations: 0.625 kB / 0.5808 GB, free: 4.195 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.277e-05/0.3935, allocations: 1.094 kB / 0.5808 GB, free: 4.195 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.117e-05/0.3936, allocations: 1.031 kB / 0.5808 GB, free: 4.195 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.565e-05/0.3937, allocations: 16.89 kB / 0.5808 GB, free: 4.191 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.128e-06/0.3937, allocations: 3.984 kB / 0.5808 GB, free: 4.188 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 1.898e-05/0.3937, allocations: 8.812 kB / 0.5809 GB, free: 4.18 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 8.918e-05/0.3938, allocations: 15.19 kB / 0.5809 GB, free: 4.176 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3938, allocations: 0.75 kB / 0.5809 GB, free: 4.176 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3938, allocations: 0.7969 kB / 0.5809 GB, free: 4.176 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.3938, allocations: 4 kB / 0.5809 GB, free: 4.172 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002253/0.3941, allocations: 314 kB / 0.5812 GB, free: 3.82 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.3941, allocations: 9.625 kB / 0.5812 GB, free: 3.82 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.798e-05/0.3941, allocations: 35.45 kB / 0.5812 GB, free: 3.777 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.357e-05/0.3942, allocations: 1.812 kB / 0.5812 GB, free: 3.777 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.368e-05/0.3942, allocations: 165.7 kB / 0.5814 GB, free: 3.578 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.3942, allocations: 1.75 kB / 0.5814 GB, free: 3.578 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.122e-06/0.3942, allocations: 384 / 0.5814 GB, free: 3.578 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8e-05/0.3943, allocations: 33.81 kB / 0.5814 GB, free: 3.543 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.477e-06/0.3943, allocations: 8.641 kB / 0.5814 GB, free: 3.535 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.3944, allocations: 0 / 0.5814 GB, free: 3.535 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3944, allocations: 0.6875 kB / 0.5814 GB, free: 3.535 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.959e-05/0.3944, allocations: 1.859 kB / 0.5814 GB, free: 3.535 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.573e-05/0.3945, allocations: 148.6 kB / 0.5816 GB, free: 3.344 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.444e-05/0.3945, allocations: 21.34 kB / 0.5816 GB, free: 3.316 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.707e-05/0.3946, allocations: 6.484 kB / 0.5816 GB, free: 3.309 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.43e-05/0.3946, allocations: 6.203 kB / 0.5816 GB, free: 3.305 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.84e-05/0.3946, allocations: 31.75 kB / 0.5816 GB, free: 3.266 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.093e-06/0.3946, allocations: 0 / 0.5816 GB, free: 3.266 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.000122/0.3947, allocations: 36.47 kB / 0.5817 GB, free: 3.23 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.802e-05/0.3948, allocations: 53.48 kB / 0.5817 GB, free: 3.168 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.795e-05/0.3948, allocations: 97.8 kB / 0.5818 GB, free: 3.062 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.831e-06/0.3948, allocations: 25.7 kB / 0.5818 GB, free: 3.031 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.26e-05/0.3948, allocations: 82.34 kB / 0.5819 GB, free: 2.949 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.273e-05/0.3949, allocations: 11.84 kB / 0.5819 GB, free: 2.938 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.426e-05/0.3949, allocations: 13.31 kB / 0.5819 GB, free: 2.922 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.073e-05/0.3949, allocations: 311.5 kB / 0.5822 GB, free: 2.609 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.628e-06/0.3949, allocations: 1.375 kB / 0.5822 GB, free: 2.609 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.383e-06/0.395, allocations: 2.438 kB / 0.5822 GB, free: 2.609 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.419e-05/0.395, allocations: 11.73 kB / 0.5822 GB, free: 2.598 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.395, allocations: 0 / 0.5822 GB, free: 2.598 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.922e-05/0.395, allocations: 40.78 kB / 0.5823 GB, free: 2.559 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.243e-05/0.3951, allocations: 5.688 kB / 0.5823 GB, free: 2.559 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.3951, allocations: 3.938 kB / 0.5823 GB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.3951, allocations: 2.422 kB / 0.5823 GB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.995e-05/0.3952, allocations: 5.406 kB / 0.5823 GB, free: 2.551 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.3952, allocations: 0.6562 kB / 0.5823 GB, free: 2.551 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.34e-05/0.3952, allocations: 1.188 kB / 0.5823 GB, free: 2.551 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.3952, allocations: 5.312 kB / 0.5823 GB, free: 2.547 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 4.127e-05/0.3952, allocations: 107.9 kB / 0.5824 GB, free: 2.434 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.263e-06/0.3953, allocations: 4.781 kB / 0.5824 GB, free: 2.43 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.088e-05/0.3953, allocations: 45.56 kB / 0.5825 GB, free: 2.387 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.3954, allocations: 1.188 kB / 0.5825 GB, free: 2.387 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3954, allocations: 0 / 0.5825 GB, free: 2.387 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-06/0.3954, allocations: 0 / 0.5825 GB, free: 2.387 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.339e-05/0.3954, allocations: 144.9 kB / 0.5826 GB, free: 2.199 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.3954, allocations: 0.7812 kB / 0.5826 GB, free: 2.199 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.794e-05/0.3955, allocations: 6.578 kB / 0.5826 GB, free: 2.195 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.073e-06/0.3955, allocations: 0.6875 kB / 0.5826 GB, free: 2.195 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.314e-06/0.3955, allocations: 4.641 kB / 0.5826 GB, free: 2.191 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3955, allocations: 4.906 kB / 0.5826 GB, free: 2.188 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3955, allocations: 0 / 0.5826 GB, free: 2.188 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.457e-05/0.3955, allocations: 59.11 kB / 0.5827 GB, free: 2.121 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.593e-05/0.3956, allocations: 77.91 kB / 0.5827 GB, free: 2.027 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.3956, allocations: 4.688 kB / 0.5828 GB, free: 2.023 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.104e-05/0.3956, allocations: 4.781 kB / 0.5828 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.119e-05/0.3956, allocations: 2.234 kB / 0.5828 GB, free: 2.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.3956, allocations: 0.8438 kB / 0.5828 GB, free: 2.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 1.175e-05/0.3956, allocations: 75.28 kB / 0.5828 GB, free: 1.945 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.12e-07/0.3956, allocations: 0 / 0.5828 GB, free: 1.945 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002017/0.3959, allocations: 9.469 kB / 0.5828 GB, free: 1.941 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): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.0002397/0.3961, allocations: 0.6051 MB / 0.5834 GB, free: 1.34 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 5.92e-05/0.3962, allocations: 5.359 kB / 0.5834 GB, free: 1.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3962, allocations: 0 / 0.5834 GB, free: 1.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 9.087e-06/0.3962, allocations: 6.625 kB / 0.5834 GB, free: 1.336 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001293/0.3963, allocations: 1.656 kB / 0.5834 GB, free: 1.336 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002329/0.3966, allocations: 112.3 kB / 0.5836 GB, free: 1.199 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.936e-05/0.3966, allocations: 0.6744 MB / 0.5842 GB, free: 0.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.405e-05/0.3967, allocations: 2.984 kB / 0.5842 GB, free: 0.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.013e-05/0.3967, allocations: 9.312 kB / 0.5842 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3967, allocations: 0 / 0.5842 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01504/0.4118, allocations: 0.9882 MB / 0.5852 GB, free: 160 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.065/7.477, allocations: 5.828 kB / 0.5852 GB, free: 156 kB / 430.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Polynomial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Polynomial.pipe 2>&1)