Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.RegNonZeroPower.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.Examples.RegNonZeroPower,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_RegNonZeroPower",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.005054/0.005054, allocations: 96.83 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.001142/0.001142, allocations: 193.8 kB / 16.67 MB, free: 5.977 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7757/0.7757, allocations: 132.2 MB / 422.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 63.91 kB / 0.5809 GB, free: 8.055 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4975/0.4992, allocations: 80.21 MB / 0.6592 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.RegNonZeroPower): time 0.002417/0.5016, allocations: 1.432 MB / 0.6606 GB, free: 8.84 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0006807/0.5023, allocations: 391.3 kB / 0.661 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.107e-05/0.5024, allocations: 1.5 kB / 0.661 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.688e-05/0.5024, allocations: 0 / 0.661 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.487e-05/0.5025, allocations: 4.688 kB / 0.661 GB, free: 8.57 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004492/0.5029, allocations: 112.3 kB / 0.6611 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.019e-05/0.503, allocations: 20.86 kB / 0.6611 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.244e-05/0.5031, allocations: 16.62 kB / 0.6611 GB, free: 8.512 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.816e-05/0.5031, allocations: 13.33 kB / 0.6611 GB, free: 8.504 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.422e-05/0.5032, allocations: 15.42 kB / 0.6611 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.401e-05/0.5032, allocations: 1.312 kB / 0.6611 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000417/0.5036, allocations: 277.5 kB / 0.6614 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.469e-05/0.5037, allocations: 2.375 kB / 0.6614 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.558e-05/0.5037, allocations: 15.52 kB / 0.6614 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.5039, allocations: 106 kB / 0.6615 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.504, allocations: 1.062 kB / 0.6615 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.314e-06/0.504, allocations: 0 / 0.6615 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.079e-06/0.504, allocations: 0 / 0.6615 GB, free: 8.383 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004315/0.5044, allocations: 367.6 kB / 0.6619 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.5045, allocations: 10.45 kB / 0.6619 GB, free: 8.004 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.048e-05/0.5045, allocations: 34.75 kB / 0.6619 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.496e-05/0.5046, allocations: 12.09 kB / 0.6619 GB, free: 7.953 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.766e-05/0.5046, allocations: 167.1 kB / 0.6621 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.047e-05/0.5047, allocations: 1.594 kB / 0.6621 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.887e-06/0.5047, allocations: 1.812 kB / 0.6621 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001817/0.5049, allocations: 53.92 kB / 0.6622 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.5049, allocations: 7.875 kB / 0.6622 GB, free: 7.707 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-06/0.5049, allocations: 3.938 kB / 0.6622 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.5049, allocations: 1.312 kB / 0.6622 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.5051, allocations: 32.5 kB / 0.6622 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002879/0.5054, allocations: 248.9 kB / 0.6624 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.5055, allocations: 46.19 kB / 0.6625 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.88e-05/0.5056, allocations: 20.42 kB / 0.6625 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005941/0.5062, allocations: 460 kB / 0.6629 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.834e-05/0.5062, allocations: 35.91 kB / 0.663 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 1.031e-06/0.5063, allocations: 0 / 0.663 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0003893/0.5066, allocations: 85.61 kB / 0.663 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.812e-05/0.5067, allocations: 53.48 kB / 0.6631 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.586e-05/0.5068, allocations: 111.6 kB / 0.6632 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.5068, allocations: 26.89 kB / 0.6632 GB, free: 6.617 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.641e-05/0.5068, allocations: 90.34 kB / 0.6633 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.5068, allocations: 4.656 kB / 0.6633 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.078e-05/0.5069, allocations: 13.23 kB / 0.6633 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.224e-05/0.5069, allocations: 317.6 kB / 0.6636 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.428e-05/0.507, allocations: 13.88 kB / 0.6637 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.896e-05/0.5071, allocations: 26.95 kB / 0.6637 GB, free: 6.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.5073, allocations: 37.75 kB / 0.6637 GB, free: 6.168 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.5073, allocations: 3.938 kB / 0.6637 GB, free: 6.164 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000211/0.5075, allocations: 64.22 kB / 0.6638 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.5075, allocations: 6.359 kB / 0.6638 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.5075, allocations: 4 kB / 0.6638 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.5075, allocations: 0 / 0.6638 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.921e-05/0.5076, allocations: 10.5 kB / 0.6638 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.5077, allocations: 0 / 0.6638 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.669e-05/0.5077, allocations: 7.016 kB / 0.6638 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.5077, allocations: 0 / 0.6638 GB, free: 6.125 MB / 0.4981 GB 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 (2): * Single equations (assignments): 2 * 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 5.692e-05/0.5078, allocations: 122 kB / 0.6639 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.5078, allocations: 1.312 kB / 0.6639 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002481/0.5081, allocations: 81.88 kB / 0.664 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.5081, allocations: 0 / 0.664 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.5081, allocations: 0 / 0.664 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.5081, allocations: 6 kB / 0.664 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001271/0.5082, allocations: 161.2 kB / 0.6642 GB, free: 5.742 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.5082, allocations: 3.938 kB / 0.6642 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.85e-05/0.5083, allocations: 8.609 kB / 0.6642 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.5083, allocations: 1.156 kB / 0.6642 GB, free: 5.738 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.5083, allocations: 4.641 kB / 0.6642 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.5083, allocations: 1.594 kB / 0.6642 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5083, allocations: 0.7031 kB / 0.6642 GB, free: 5.734 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002309/0.5086, allocations: 167.4 kB / 0.6643 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.934e-05/0.5086, allocations: 82.27 kB / 0.6644 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.5086, allocations: 1.594 kB / 0.6644 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.436e-05/0.5087, allocations: 9.844 kB / 0.6644 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.5087, allocations: 5.906 kB / 0.6644 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.5088, allocations: 1.562 kB / 0.6644 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.722e-05/0.5088, allocations: 88.31 kB / 0.6645 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5088, allocations: 0 / 0.6645 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000233/0.509, allocations: 15.91 kB / 0.6645 GB, free: 5.398 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 (2): * Single equations (assignments): 2 * 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.0004333/0.5095, allocations: 0.7166 MB / 0.6652 GB, free: 4.703 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002109/0.5097, allocations: 39.09 kB / 0.6653 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.5097, allocations: 0 / 0.6653 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.414e-05/0.5098, allocations: 23.69 kB / 0.6653 GB, free: 4.676 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002956/0.5101, allocations: 5.344 kB / 0.6653 GB, free: 4.672 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003707/0.5105, allocations: 137.5 kB / 0.6654 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.5106, allocations: 0.6776 MB / 0.6661 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.504e-05/0.5106, allocations: 5.062 kB / 0.6661 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.956e-05/0.5107, allocations: 8.562 kB / 0.6661 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.5107, allocations: 0 / 0.6661 GB, free: 3.805 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01687/0.5275, allocations: 1.589 MB / 0.6677 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.344/7.872, allocations: 8.438 kB / 0.6677 GB, free: 2.938 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.RegNonZeroPower_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_Examples_RegNonZeroPower.fmu > IDEAS_IDEAS.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)