Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FifthOrder_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.001152/0.001152, 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.445/1.445, allocations: 222.9 MB / 239.3 MB, free: 4.605 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.001285/0.001285, allocations: 192.5 kB / 289.6 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5624/0.5624, allocations: 91.91 MB / 431.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001467/0.001467, allocations: 79.88 kB / 0.502 GB, free: 7.633 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4084/0.4099, allocations: 71.26 MB / 0.5716 GB, free: 37.25 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII): time 0.01637/0.4263, allocations: 21.92 MB / 0.593 GB, free: 21.72 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01289/0.4393, allocations: 4.894 MB / 0.5978 GB, free: 18.18 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005811/0.4452, allocations: 46.47 kB / 0.5978 GB, free: 18.18 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003381/0.4486, allocations: 0.8744 MB / 0.5987 GB, free: 17.71 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008608/0.4572, allocations: 2.058 MB / 0.6007 GB, free: 16.25 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006115/0.4634, allocations: 2.063 MB / 0.6027 GB, free: 15.17 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01125/0.4746, allocations: 5.73 MB / 0.6083 GB, free: 12.23 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003964/0.4786, allocations: 1.32 MB / 0.6096 GB, free: 11.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006479/0.4851, allocations: 2.335 MB / 0.6118 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007144/0.4923, allocations: 2.971 MB / 0.6147 GB, free: 8.887 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003353/0.4957, allocations: 446.9 kB / 0.6152 GB, free: 8.883 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004728/0.5005, allocations: 0.5854 MB / 0.6157 GB, free: 8.84 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003506/0.504, allocations: 1.156 MB / 0.6169 GB, free: 8.051 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007966/0.512, allocations: 2.631 MB / 0.6194 GB, free: 6.281 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01435/0.5264, allocations: 6.194 MB / 0.6255 GB, free: 3.395 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/0.5264, allocations: 1.094 kB / 0.6255 GB, free: 3.395 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.5264, allocations: 0 / 0.6255 GB, free: 3.395 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000374/0.5268, allocations: 0 / 0.6255 GB, free: 3.395 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: 894 * Number of variables: 894 Notification: Performance of Generate backend data structure: time 0.04236/0.5692, allocations: 9.23 MB / 0.6345 GB, free: 14.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/0.5693, allocations: 8.031 kB / 0.6345 GB, free: 14.2 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002419/0.5717, allocations: 488.9 kB / 0.635 GB, free: 13.71 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02833/0.6001, allocations: 4.013 MB / 0.6389 GB, free: 9.684 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009123/0.6092, allocations: 2.67 MB / 0.6415 GB, free: 6.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001359/0.6106, allocations: 0.9574 MB / 0.6424 GB, free: 5.836 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00242/0.6131, allocations: 348 kB / 0.6428 GB, free: 5.496 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01686/0.63, allocations: 4.743 MB / 0.6474 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001566/0.6302, allocations: 0 / 0.6474 GB, free: 0.7227 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001656/0.6319, allocations: 140 kB / 0.6475 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.672e-05/0.632, allocations: 91.94 kB / 0.6476 GB, free: 0.4961 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01475/0.6467, allocations: 4.256 MB / 0.6518 GB, free: 12.23 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.05381/0.7006, allocations: 18.38 MB / 0.6697 GB, free: 8.672 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01652/0.7172, allocations: 5.016 MB / 0.6746 GB, free: 3.574 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008622/0.7259, allocations: 2.789 MB / 0.6774 GB, free: 0.7773 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001127/0.7271, allocations: 70.92 kB / 0.6774 GB, free: 0.707 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01146/0.7386, allocations: 3.189 MB / 0.6805 GB, free: 13.47 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 2.8e-05/0.7387, allocations: 0 / 0.6805 GB, free: 13.47 MB / 494.1 MB Notification: Performance of matching and sorting (n=384): time 0.3206/1.059, allocations: 67.76 MB / 0.7467 GB, free: 9.52 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/1.059, allocations: 141.8 kB / 0.7468 GB, free: 9.355 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007889/1.067, allocations: 3.254 MB / 0.75 GB, free: 6.082 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001575/1.069, allocations: 93.7 kB / 0.7501 GB, free: 5.984 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002094/1.071, allocations: 1.974 MB / 0.752 GB, free: 3.996 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00279/1.074, allocations: 1.325 MB / 0.7533 GB, free: 2.652 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003974/1.078, allocations: 0.6783 MB / 0.754 GB, free: 1.961 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001264/1.078, allocations: 305.1 kB / 0.7543 GB, free: 1.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006638/1.085, allocations: 2.605 MB / 0.7568 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007168/1.092, allocations: 3.233 MB / 0.76 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3298/1.422, allocations: 19.06 MB / 0.7786 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.574e-05/1.422, allocations: 5.625 kB / 0.7786 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.06082/1.483, allocations: 17.29 MB / 0.7955 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001125/1.483, allocations: 68.38 kB / 0.7956 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-05/1.483, allocations: 17.7 kB / 0.7956 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02719/1.51, allocations: 7.173 MB / 0.8026 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00431/1.514, allocations: 0.687 MB / 0.8033 GB, free: 151 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09011/1.605, allocations: 33.34 MB / 0.8358 GB, free: 132.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00872/1.613, allocations: 0.6244 MB / 0.8364 GB, free: 132.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001795/1.615, allocations: 153.8 kB / 0.8366 GB, free: 132.1 MB / 0.5606 GB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.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 (407): * Single equations (assignments): 404 * 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.004514/1.62, allocations: 0.669 MB / 0.8372 GB, free: 131.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002798/1.623, allocations: 458.4 kB / 0.8377 GB, free: 131 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05839/1.681, allocations: 16.87 MB / 0.8541 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-05/1.681, allocations: 37.41 kB / 0.8542 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001109/1.681, allocations: 39.92 kB / 0.8542 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001231/1.681, allocations: 15.94 kB / 0.8542 GB, free: 113.9 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.06726/1.749, allocations: 21.89 MB / 0.8756 GB, free: 92.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.316e-05/1.749, allocations: 0 / 0.8756 GB, free: 92.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002539/1.751, allocations: 395.5 kB / 0.876 GB, free: 91.63 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02548/1.777, allocations: 7.387 MB / 0.8832 GB, free: 84.23 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001345/1.778, allocations: 75.48 kB / 0.8833 GB, free: 84.16 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08282/1.861, allocations: 31.82 MB / 0.9143 GB, free: 52.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/1.861, allocations: 0 / 0.9143 GB, free: 52.04 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06597/1.927, allocations: 20.24 MB / 0.9341 GB, free: 31.72 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002528/1.93, allocations: 0.5571 MB / 0.9346 GB, free: 31.14 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002972/1.933, allocations: 64 kB / 0.9347 GB, free: 31.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007007/1.94, allocations: 387.5 kB / 0.9351 GB, free: 30.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004563/1.944, allocations: 0.7805 MB / 0.9358 GB, free: 29.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001234/1.946, allocations: 95.97 kB / 0.9359 GB, free: 29.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005229/1.951, allocations: 2.141 MB / 0.938 GB, free: 27.68 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.223e-06/1.951, allocations: 0 / 0.938 GB, free: 27.68 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0113/1.962, allocations: 1.802 MB / 0.9398 GB, free: 25.87 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order3.delta,order3.w,order3.e1q,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (248): * Single equations (assignments): 245 * 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 {(100,36,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.06672/2.029, allocations: 20.93 MB / 0.9602 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.03448/2.063, allocations: 9.321 MB / 0.9693 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/2.064, allocations: 0 / 0.9693 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.02291/2.086, allocations: 6.198 MB / 0.9754 GB, free: 5.242 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006919/2.093, allocations: 384.6 kB / 0.9757 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5014/2.595, allocations: 68.82 MB / 1.043 GB, free: 174.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005183/2.6, allocations: 2.453 MB / 1.045 GB, free: 173.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00315/2.603, allocations: 369.8 kB / 1.046 GB, free: 172.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004576/2.608, allocations: 2.032 MB / 1.048 GB, free: 170.9 MB / 0.5919 GB Notification: Performance of SimCode: time 1.843e-06/2.608, allocations: 0 / 1.048 GB, free: 170.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2289/2.837, allocations: 125.3 MB / 1.17 GB, free: 47.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.3/19.13, allocations: 10.97 kB / 1.17 GB, free: 47.19 MB / 0.5919 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_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_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe 2>&1)