Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.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.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",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.00128/0.00128, 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.581/1.581, allocations: 222.9 MB / 239.2 MB, free: 4.59 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.00214/0.00214, allocations: 192.5 kB / 289.6 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.6466/0.6466, allocations: 91.91 MB / 431.6 MB, free: 9.238 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 87.8 kB / 0.502 GB, free: 7.621 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4704/0.472, allocations: 71.25 MB / 0.5716 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01699/0.489, allocations: 21.83 MB / 0.5929 GB, free: 21.57 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01436/0.5034, allocations: 4.865 MB / 0.5976 GB, free: 18.04 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005994/0.5095, allocations: 44.5 kB / 0.5977 GB, free: 18.04 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00402/0.5136, allocations: 0.8794 MB / 0.5985 GB, free: 17.57 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01036/0.524, allocations: 2.034 MB / 0.6005 GB, free: 16.12 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006492/0.5305, allocations: 2.066 MB / 0.6025 GB, free: 15.04 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01254/0.543, allocations: 5.669 MB / 0.6081 GB, free: 12.12 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003353/0.5464, allocations: 1.32 MB / 0.6094 GB, free: 11.49 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006325/0.5528, allocations: 2.311 MB / 0.6116 GB, free: 10.3 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006966/0.5598, allocations: 2.937 MB / 0.6145 GB, free: 8.805 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002404/0.5622, allocations: 435.8 kB / 0.6149 GB, free: 8.805 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003549/0.5658, allocations: 0.5818 MB / 0.6155 GB, free: 8.758 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001635/0.5675, allocations: 1.148 MB / 0.6166 GB, free: 7.973 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007096/0.5746, allocations: 2.605 MB / 0.6191 GB, free: 6.223 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01248/0.5871, allocations: 6.155 MB / 0.6252 GB, free: 3.344 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.116e-05/0.5871, allocations: 0 / 0.6252 GB, free: 3.344 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.267e-06/0.5872, allocations: 3.938 kB / 0.6252 GB, free: 3.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003881/0.5875, allocations: 0 / 0.6252 GB, free: 3.34 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: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.04082/0.6284, allocations: 9.156 MB / 0.6341 GB, free: 14.46 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/0.6285, allocations: 8.031 kB / 0.6341 GB, free: 14.45 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009055/0.6294, allocations: 484.8 kB / 0.6346 GB, free: 13.97 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02868/0.6581, allocations: 4.013 MB / 0.6385 GB, free: 9.945 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008965/0.6671, allocations: 2.639 MB / 0.6411 GB, free: 7.223 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001313/0.6684, allocations: 0.9611 MB / 0.642 GB, free: 6.125 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001512/0.67, allocations: 351.9 kB / 0.6423 GB, free: 5.781 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/0.6816, allocations: 4.727 MB / 0.647 GB, free: 1.023 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.957e-05/0.6817, allocations: 0 / 0.647 GB, free: 1.023 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004395/0.6822, allocations: 144 kB / 0.6471 GB, free: 0.8828 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.14e-05/0.6823, allocations: 88 kB / 0.6472 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/0.6924, allocations: 4.24 MB / 0.6513 GB, free: 12.55 MB / 462.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.04317/0.7356, allocations: 18.36 MB / 0.6692 GB, free: 9.012 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01339/0.749, allocations: 5 MB / 0.6741 GB, free: 3.934 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006825/0.7559, allocations: 2.781 MB / 0.6768 GB, free: 1.145 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009539/0.7569, allocations: 74.89 kB / 0.6769 GB, free: 1.07 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009002/0.7659, allocations: 3.173 MB / 0.68 GB, free: 13.86 MB / 494.1 MB Notification: Performance of pre-optimization done (n=383): time 1.192e-05/0.766, allocations: 0 / 0.68 GB, free: 13.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=383): time 0.3157/1.082, allocations: 68.05 MB / 0.7465 GB, free: 9.613 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/1.082, allocations: 141.8 kB / 0.7466 GB, free: 9.449 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007565/1.089, allocations: 3.218 MB / 0.7497 GB, free: 6.211 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001304/1.091, allocations: 85.7 kB / 0.7498 GB, free: 6.121 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002059/1.093, allocations: 1.97 MB / 0.7517 GB, free: 4.137 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003052/1.096, allocations: 1.317 MB / 0.753 GB, free: 2.801 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004664/1.101, allocations: 0.6704 MB / 0.7537 GB, free: 2.117 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001102/1.101, allocations: 309 kB / 0.754 GB, free: 1.812 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006914/1.108, allocations: 2.589 MB / 0.7565 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007593/1.115, allocations: 3.209 MB / 0.7596 GB, free: 11.78 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3769/1.492, allocations: 18.84 MB / 0.778 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.532e-05/1.492, allocations: 2.625 kB / 0.778 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.06607/1.558, allocations: 17.25 MB / 0.7949 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/1.559, allocations: 67.77 kB / 0.795 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.186e-05/1.559, allocations: 15.38 kB / 0.795 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02982/1.589, allocations: 7.173 MB / 0.802 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004418/1.593, allocations: 0.6687 MB / 0.8026 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08675/1.68, allocations: 33.33 MB / 0.8352 GB, free: 133.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007101/1.687, allocations: 0.6193 MB / 0.8358 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001118/1.688, allocations: 152 kB / 0.8359 GB, free: 132.5 MB / 0.5606 GB Warning: Assuming fixed start value for the following 5 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 400 * Array equations: 0 * Algorithm blocks: 2 * 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): 1 system {(92,44,5.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002357/1.69, allocations: 0.6693 MB / 0.8366 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001521/1.692, allocations: 454.4 kB / 0.837 GB, free: 131.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05349/1.745, allocations: 16.85 MB / 0.8535 GB, free: 114.5 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.139e-05/1.746, allocations: 43.47 kB / 0.8535 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.295e-05/1.746, allocations: 28 kB / 0.8535 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001402/1.746, allocations: 15.94 kB / 0.8535 GB, free: 114.4 MB / 0.5606 GB 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 postOpt removeSimpleEquations (simulation): time 0.06201/1.808, allocations: 21.84 MB / 0.8749 GB, free: 92.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.802e-05/1.808, allocations: 4.031 kB / 0.8749 GB, free: 92.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002697/1.811, allocations: 388 kB / 0.8752 GB, free: 92.11 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02519/1.836, allocations: 7.361 MB / 0.8824 GB, free: 84.73 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001222/1.837, allocations: 67.98 kB / 0.8825 GB, free: 84.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07878/1.916, allocations: 31.85 MB / 0.9136 GB, free: 52.53 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.699e-06/1.916, allocations: 4 kB / 0.9136 GB, free: 52.52 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06124/1.977, allocations: 20.2 MB / 0.9333 GB, free: 32.24 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/1.979, allocations: 0.5532 MB / 0.9339 GB, free: 31.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002284/1.981, allocations: 72.05 kB / 0.9339 GB, free: 31.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005858/1.987, allocations: 383.5 kB / 0.9343 GB, free: 31.22 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00356/1.991, allocations: 0.7805 MB / 0.9351 GB, free: 30.44 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007612/1.992, allocations: 91.98 kB / 0.9352 GB, free: 30.35 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003375/1.995, allocations: 2.105 MB / 0.9372 GB, free: 28.24 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/1.995, allocations: 0 / 0.9372 GB, free: 28.24 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008239/2.003, allocations: 1.801 MB / 0.939 GB, free: 26.44 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (247): * Single equations (assignments): 244 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(98,38,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.06285/2.066, allocations: 20.88 MB / 0.9594 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.03433/2.101, allocations: 9.274 MB / 0.9684 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 9.758e-06/2.101, allocations: 4.062 kB / 0.9684 GB, free: 12.14 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.02411/2.125, allocations: 6.153 MB / 0.9744 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009175/2.134, allocations: 388.3 kB / 0.9748 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4951/2.629, allocations: 68.34 MB / 1.042 GB, free: 174.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00264/2.632, allocations: 2.444 MB / 1.044 GB, free: 173.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002379/2.634, allocations: 377.3 kB / 1.044 GB, free: 173.9 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002719/2.637, allocations: 1.985 MB / 1.046 GB, free: 172 MB / 0.5919 GB Notification: Performance of SimCode: time 1.002e-06/2.637, allocations: 0 / 1.046 GB, free: 172 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2015/2.839, allocations: 124.5 MB / 1.168 GB, free: 49.11 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.46/20.3, allocations: 11.7 kB / 1.168 GB, free: 49.1 MB / 0.5919 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII_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_Examples_PSATSystems_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)