Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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_OpenIPSL_Tests_Machines_PSAT_Order2test2_perturbation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation,fileNamePrefix="OpenIPSL_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.001283/0.001283, 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.356/1.356, allocations: 222.9 MB / 239.3 MB, free: 4.637 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.001327/0.001327, allocations: 188.5 kB / 289.6 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4445/0.4445, allocations: 78.53 MB / 418.2 MB, free: 3.184 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 83.88 kB / 497.6 MB, free: 6.305 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1192, allocations: 68.16 MB / 0.5525 GB, free: 2.102 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation): time 0.2047/0.3239, allocations: 6.38 MB / 0.5587 GB, free: 35.99 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003502/0.3274, allocations: 1.846 MB / 0.5605 GB, free: 35.46 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005558/0.328, allocations: 12.62 kB / 0.5605 GB, free: 35.46 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006115/0.3286, allocations: 228.3 kB / 0.5607 GB, free: 35.45 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001691/0.3304, allocations: 0.7079 MB / 0.5614 GB, free: 35.3 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.3315, allocations: 0.6046 MB / 0.562 GB, free: 35.23 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001294/0.3329, allocations: 1.387 MB / 0.5634 GB, free: 35.04 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004435/0.3333, allocations: 328.9 kB / 0.5637 GB, free: 34.99 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006536/0.334, allocations: 0.582 MB / 0.5642 GB, free: 34.83 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006497/0.3346, allocations: 0.7214 MB / 0.565 GB, free: 34.63 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001565/0.3348, allocations: 102.4 kB / 0.5651 GB, free: 34.63 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004652/0.3353, allocations: 235.9 kB / 0.5653 GB, free: 34.62 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001912/0.3355, allocations: 278.9 kB / 0.5655 GB, free: 34.55 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004371/0.3359, allocations: 0.6116 MB / 0.5661 GB, free: 34.32 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001137/0.3371, allocations: 1.493 MB / 0.5676 GB, free: 33.94 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3371, allocations: 4.5 kB / 0.5676 GB, free: 33.94 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3371, allocations: 0 / 0.5676 GB, free: 33.94 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.3371, allocations: 0 / 0.5676 GB, free: 33.94 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.007494/0.3446, allocations: 2.532 MB / 0.5701 GB, free: 33.05 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.3447, allocations: 15.78 kB / 0.5701 GB, free: 33.04 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.3448, allocations: 129.4 kB / 0.5702 GB, free: 33 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004702/0.3496, allocations: 0.7802 MB / 0.571 GB, free: 32.91 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/0.3506, allocations: 0.7567 MB / 0.5717 GB, free: 32.51 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002334/0.3509, allocations: 260.1 kB / 0.572 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.351, allocations: 76.08 kB / 0.572 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00208/0.3531, allocations: 1.082 MB / 0.5731 GB, free: 32.25 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.3531, allocations: 0 / 0.5731 GB, free: 32.25 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-05/0.3532, allocations: 29.44 kB / 0.5731 GB, free: 32.25 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.3533, allocations: 19.41 kB / 0.5731 GB, free: 32.25 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002337/0.3556, allocations: 1.117 MB / 0.5742 GB, free: 32.24 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.005238/0.3608, allocations: 3.451 MB / 0.5776 GB, free: 31.12 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00194/0.3628, allocations: 1.413 MB / 0.579 GB, free: 30.2 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001475/0.3643, allocations: 0.7748 MB / 0.5797 GB, free: 29.91 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.689e-05/0.3644, allocations: 11.41 kB / 0.5797 GB, free: 29.91 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.664e-05/0.3644, allocations: 52.41 kB / 0.5798 GB, free: 29.86 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.236e-06/0.3644, allocations: 0 / 0.5798 GB, free: 29.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02656/0.391, allocations: 6.747 MB / 0.5864 GB, free: 28.59 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.3911, allocations: 61.34 kB / 0.5864 GB, free: 28.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/0.3925, allocations: 0.8814 MB / 0.5873 GB, free: 28.16 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001682/0.3927, allocations: 41.23 kB / 0.5873 GB, free: 28.11 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003098/0.393, allocations: 495.6 kB / 0.5878 GB, free: 27.72 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000366/0.3934, allocations: 342.4 kB / 0.5881 GB, free: 27.45 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004612/0.3939, allocations: 198 kB / 0.5883 GB, free: 27.36 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.394, allocations: 357.1 kB / 0.5887 GB, free: 27.02 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001783/0.3958, allocations: 0.7103 MB / 0.5894 GB, free: 26.78 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00189/0.3977, allocations: 0.8434 MB / 0.5902 GB, free: 26.42 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01934/0.4171, allocations: 4.79 MB / 0.5949 GB, free: 25.1 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.617e-06/0.4171, allocations: 5.344 kB / 0.5949 GB, free: 25.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=143) (initialization): time 0.01459/0.4317, allocations: 4.256 MB / 0.599 GB, free: 24.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.566e-05/0.4318, allocations: 9.312 kB / 0.599 GB, free: 24.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.4318, allocations: 2.969 kB / 0.599 GB, free: 24.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006711/0.4385, allocations: 1.865 MB / 0.6009 GB, free: 23.76 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/0.4397, allocations: 207.1 kB / 0.6011 GB, free: 23.74 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02264/0.4623, allocations: 9.088 MB / 0.6099 GB, free: 18.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001749/0.4641, allocations: 177.9 kB / 0.6101 GB, free: 18.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000243/0.4644, allocations: 39.48 kB / 0.6101 GB, free: 18.79 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.0006269/0.465, allocations: 241.2 kB / 0.6104 GB, free: 18.59 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003214/0.4653, allocations: 121.9 kB / 0.6105 GB, free: 18.53 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01309/0.4784, allocations: 4.006 MB / 0.6144 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.4785, allocations: 12 kB / 0.6144 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4785, allocations: 5.062 kB / 0.6144 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.206e-05/0.4785, allocations: 7.984 kB / 0.6144 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/0.4934, allocations: 5.614 MB / 0.6199 GB, free: 9.551 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.4934, allocations: 4 kB / 0.6199 GB, free: 9.547 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007145/0.4941, allocations: 127.8 kB / 0.62 GB, free: 9.422 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005694/0.4999, allocations: 1.744 MB / 0.6217 GB, free: 7.676 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001765/0.5001, allocations: 16 kB / 0.6217 GB, free: 7.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0175/0.5176, allocations: 8.084 MB / 0.6296 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.5176, allocations: 1 kB / 0.6296 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01634/0.534, allocations: 4.958 MB / 0.6345 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004402/0.5344, allocations: 203.4 kB / 0.6347 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003522/0.5348, allocations: 16 kB / 0.6347 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/0.5362, allocations: 111.9 kB / 0.6348 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008771/0.5371, allocations: 224.6 kB / 0.635 GB, free: 9.887 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/0.5372, allocations: 23.98 kB / 0.635 GB, free: 9.863 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00108/0.5383, allocations: 0.5947 MB / 0.6356 GB, free: 9.262 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5383, allocations: 0 / 0.6356 GB, free: 9.262 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00152/0.5398, allocations: 439.5 kB / 0.636 GB, free: 8.832 MB / 446.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.01658/0.5564, allocations: 5.549 MB / 0.6415 GB, free: 3.238 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00784/0.5643, allocations: 2.497 MB / 0.6439 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.5643, allocations: 0 / 0.6439 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00521/0.5695, allocations: 1.592 MB / 0.6455 GB, free: 15.13 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008707/0.5704, allocations: 89.66 kB / 0.6455 GB, free: 15.04 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04105/0.6115, allocations: 15.69 MB / 0.6609 GB, free: 14.98 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007752/0.6123, allocations: 1.084 MB / 0.6619 GB, free: 13.87 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004841/0.6128, allocations: 81.8 kB / 0.662 GB, free: 13.79 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006357/0.6135, allocations: 447.3 kB / 0.6624 GB, free: 13.35 MB / 478.1 MB Notification: Performance of SimCode: time 9.32e-07/0.6135, allocations: 0 / 0.6624 GB, free: 13.35 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06075/0.6742, allocations: 32.86 MB / 0.6945 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12.24, allocations: 14.61 kB / 0.6945 GB, free: 12.84 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe ; mkfifo OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe >> ../files/OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.sim & python3 -m fmpy simulate --output-file OpenIPSL_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_OpenIPSL_Tests_Machines_PSAT_Order2test2_perturbation.fmu > OpenIPSL_OpenIPSL.Tests.Machines.PSAT.Order2test2_perturbation.pipe 2>&1)