Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.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/Modelica 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/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Machines_PSAT_Order2test2_perturbation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Tests_Machines_PSAT_Order2test2_perturbation",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.001472/0.001472, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 239.3 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001347/0.001347, allocations: 192.5 kB / 289.6 MB, free: 2.352 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5064/0.5064, allocations: 91.9 MB / 431.6 MB, free: 9.293 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 83.84 kB / 0.502 GB, free: 7.672 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2974, allocations: 71.26 MB / 0.5716 GB, free: 36.62 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation): time 0.005016/0.3025, allocations: 6.398 MB / 0.5778 GB, free: 32.93 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002795/0.3053, allocations: 1.863 MB / 0.5796 GB, free: 31.64 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004603/0.3058, allocations: 15 kB / 0.5796 GB, free: 31.64 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004778/0.3063, allocations: 224.5 kB / 0.5799 GB, free: 31.52 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001419/0.3077, allocations: 0.7112 MB / 0.5806 GB, free: 31.04 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.3088, allocations: 0.6007 MB / 0.5811 GB, free: 30.74 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009632/0.3097, allocations: 1.392 MB / 0.5825 GB, free: 30.04 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003731/0.3101, allocations: 332.1 kB / 0.5828 GB, free: 29.9 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004671/0.3106, allocations: 0.5798 MB / 0.5834 GB, free: 29.61 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005306/0.3111, allocations: 0.7208 MB / 0.5841 GB, free: 29.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.3113, allocations: 99.31 kB / 0.5842 GB, free: 29.25 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003824/0.3117, allocations: 241.1 kB / 0.5844 GB, free: 29.21 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001637/0.3119, allocations: 280.9 kB / 0.5847 GB, free: 29.03 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003504/0.3122, allocations: 0.6156 MB / 0.5853 GB, free: 28.61 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009711/0.3132, allocations: 1.488 MB / 0.5867 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3132, allocations: 3.906 kB / 0.5867 GB, free: 27.91 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3132, allocations: 0 / 0.5867 GB, free: 27.91 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.464e-05/0.3132, allocations: 0 / 0.5867 GB, free: 27.91 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: 194 * Number of variables: 194 Notification: Performance of Generate backend data structure: time 0.007398/0.3206, allocations: 2.533 MB / 0.5892 GB, free: 26.75 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.3207, allocations: 9.156 kB / 0.5892 GB, free: 26.75 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001308/0.3208, allocations: 125.3 kB / 0.5893 GB, free: 26.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004918/0.3257, allocations: 0.7832 MB / 0.5901 GB, free: 26.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009638/0.3267, allocations: 0.7592 MB / 0.5908 GB, free: 25.95 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00023/0.327, allocations: 260.4 kB / 0.5911 GB, free: 25.72 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.3271, allocations: 79.72 kB / 0.5912 GB, free: 25.69 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00215/0.3293, allocations: 1.071 MB / 0.5922 GB, free: 25.31 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.3293, allocations: 7.375 kB / 0.5922 GB, free: 25.3 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.125e-05/0.3294, allocations: 29.94 kB / 0.5923 GB, free: 25.28 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.937e-05/0.3294, allocations: 23.12 kB / 0.5923 GB, free: 25.28 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002424/0.3319, allocations: 1.112 MB / 0.5934 GB, free: 24.94 MB / 430.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005235/0.3371, allocations: 3.447 MB / 0.5967 GB, free: 22.97 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002047/0.3392, allocations: 1.414 MB / 0.5981 GB, free: 22.03 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001675/0.3409, allocations: 0.7713 MB / 0.5989 GB, free: 21.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.835e-05/0.341, allocations: 17.23 kB / 0.5989 GB, free: 21.74 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.238e-05/0.341, allocations: 44.22 kB / 0.5989 GB, free: 21.69 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.466e-06/0.341, allocations: 4 kB / 0.5989 GB, free: 21.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02798/0.369, allocations: 6.754 MB / 0.6055 GB, free: 20.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.3691, allocations: 62.5 kB / 0.6056 GB, free: 20.35 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001141/0.3702, allocations: 0.8874 MB / 0.6064 GB, free: 19.98 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002003/0.3704, allocations: 41.27 kB / 0.6065 GB, free: 19.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002627/0.3707, allocations: 498.8 kB / 0.607 GB, free: 19.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000288/0.371, allocations: 339.5 kB / 0.6073 GB, free: 19.27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003747/0.3714, allocations: 200 kB / 0.6075 GB, free: 19.18 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.55e-05/0.3714, allocations: 353.1 kB / 0.6078 GB, free: 18.85 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00169/0.3731, allocations: 0.7112 MB / 0.6085 GB, free: 18.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001772/0.3749, allocations: 0.8353 MB / 0.6093 GB, free: 18.25 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01965/0.3946, allocations: 4.794 MB / 0.614 GB, free: 16.87 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.3946, allocations: 4.906 kB / 0.614 GB, free: 16.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.01384/0.4085, allocations: 4.255 MB / 0.6182 GB, free: 14.43 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.4085, allocations: 8 kB / 0.6182 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.329e-05/0.4086, allocations: 7.984 kB / 0.6182 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005981/0.4145, allocations: 1.862 MB / 0.62 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.4156, allocations: 207.7 kB / 0.6202 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02001/0.4356, allocations: 9.082 MB / 0.6291 GB, free: 3.117 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001974/0.4377, allocations: 175 kB / 0.6292 GB, free: 2.945 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/0.4378, allocations: 39.97 kB / 0.6293 GB, free: 2.906 MB / 430.1 MB Warning: Assuming fixed start value for the following 2 variables: order2_Inputs_Outputs1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2_Inputs_Outputs1.delta:VARIABLE(flow=false start = order2_Inputs_Outputs1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (108): * Single equations (assignments): 107 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(26,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0005513/0.4384, allocations: 251.5 kB / 0.6295 GB, free: 2.652 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002615/0.4387, allocations: 118.5 kB / 0.6296 GB, free: 2.535 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01336/0.452, allocations: 4.002 MB / 0.6335 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.4521, allocations: 8 kB / 0.6335 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.4521, allocations: 7.938 kB / 0.6335 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.977e-05/0.4521, allocations: 7.969 kB / 0.6336 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01613/0.4683, allocations: 5.622 MB / 0.639 GB, free: 8.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/0.4683, allocations: 0 / 0.639 GB, free: 8.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007781/0.4691, allocations: 131.8 kB / 0.6392 GB, free: 8.598 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006446/0.4756, allocations: 1.749 MB / 0.6409 GB, free: 6.844 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001754/0.4758, allocations: 19.98 kB / 0.6409 GB, free: 6.824 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01959/0.4954, allocations: 8.076 MB / 0.6488 GB, free: 14.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4954, allocations: 0 / 0.6488 GB, free: 14.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01637/0.5118, allocations: 4.966 MB / 0.6536 GB, free: 9.609 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003872/0.5122, allocations: 199.4 kB / 0.6538 GB, free: 9.395 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003581/0.5126, allocations: 16 kB / 0.6538 GB, free: 9.379 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/0.5139, allocations: 115.9 kB / 0.654 GB, free: 9.266 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007315/0.5146, allocations: 216.6 kB / 0.6542 GB, free: 9.051 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.5147, allocations: 27.98 kB / 0.6542 GB, free: 9.023 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008569/0.5156, allocations: 0.5887 MB / 0.6548 GB, free: 8.426 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5156, allocations: 3.938 kB / 0.6548 GB, free: 8.422 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001444/0.5171, allocations: 435.5 kB / 0.6552 GB, free: 7.996 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (order2_Inputs_Outputs1.delta,order2_Inputs_Outputs1.w) * 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 (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(26,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0163/0.5334, allocations: 5.549 MB / 0.6606 GB, free: 2.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00769/0.5411, allocations: 2.5 MB / 0.663 GB, free: 15.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5411, allocations: 0.5625 kB / 0.663 GB, free: 15.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005137/0.5463, allocations: 1.595 MB / 0.6646 GB, free: 14.29 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009006/0.5472, allocations: 90.98 kB / 0.6647 GB, free: 14.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04099/0.5882, allocations: 15.7 MB / 0.68 GB, free: 14.12 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007638/0.589, allocations: 1.084 MB / 0.6811 GB, free: 13.01 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004553/0.5895, allocations: 86.69 kB / 0.6812 GB, free: 12.92 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006529/0.5901, allocations: 447.3 kB / 0.6816 GB, free: 12.48 MB / 494.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5901, allocations: 0 / 0.6816 GB, free: 12.48 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06245/0.6526, allocations: 32.86 MB / 0.7137 GB, free: 11.78 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/12.17, allocations: 11.81 kB / 0.7137 GB, free: 11.77 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_dev_OpenIPSL_Tests_Machines_PSAT_Order2test2_perturbation.fmu > OpenIPSL_dev_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe 2>&1)