Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_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.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.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_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.006522/0.006522, allocations: 101.2 kB / 15.73 MB, free: 6.039 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.383/1.383, allocations: 222.9 MB / 239.4 MB, free: 4.547 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.001361/0.001361, allocations: 196.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4458/0.4458, allocations: 78.53 MB / 418.4 MB, free: 3.141 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 79.88 kB / 0.5532 GB, free: 1.379 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2879/0.2894, allocations: 68.17 MB / 0.6198 GB, free: 9.359 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.01019/0.2996, allocations: 13.81 MB / 0.6333 GB, free: 12.25 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007564/0.3072, allocations: 3.519 MB / 0.6367 GB, free: 8.723 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002134/0.3094, allocations: 32 kB / 0.6367 GB, free: 8.691 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001454/0.3109, allocations: 0.5654 MB / 0.6373 GB, free: 8.117 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004748/0.3157, allocations: 1.439 MB / 0.6387 GB, free: 6.676 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00348/0.3192, allocations: 1.526 MB / 0.6402 GB, free: 5.172 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004524/0.3237, allocations: 3.812 MB / 0.6439 GB, free: 1.344 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.3249, allocations: 0.9035 MB / 0.6448 GB, free: 400 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001983/0.3269, allocations: 1.564 MB / 0.6463 GB, free: 14.82 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002244/0.3292, allocations: 2.011 MB / 0.6483 GB, free: 12.8 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000524/0.3297, allocations: 296 kB / 0.6486 GB, free: 12.51 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008428/0.3306, allocations: 443.9 kB / 0.649 GB, free: 12.08 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006252/0.3312, allocations: 0.7818 MB / 0.6497 GB, free: 11.29 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.3328, allocations: 1.654 MB / 0.6514 GB, free: 9.629 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004081/0.3369, allocations: 4.048 MB / 0.6553 GB, free: 5.566 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3369, allocations: 3.938 kB / 0.6553 GB, free: 5.562 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.3369, allocations: 0 / 0.6553 GB, free: 5.562 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.948e-05/0.337, allocations: 0 / 0.6553 GB, free: 5.562 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 525 * Number of variables: 525 Notification: Performance of Generate backend data structure: time 0.02382/0.3608, allocations: 6.669 MB / 0.6618 GB, free: 14.8 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.3608, allocations: 8.031 kB / 0.6618 GB, free: 14.79 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005482/0.3614, allocations: 311.3 kB / 0.6621 GB, free: 14.47 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01575/0.3772, allocations: 2.271 MB / 0.6643 GB, free: 12.2 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004529/0.3817, allocations: 1.918 MB / 0.6662 GB, free: 10.21 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008304/0.3826, allocations: 0.7253 MB / 0.6669 GB, free: 9.371 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007861/0.3834, allocations: 223.9 kB / 0.6671 GB, free: 9.152 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007847/0.3912, allocations: 3.055 MB / 0.6701 GB, free: 6.02 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.096e-05/0.3913, allocations: 3.938 kB / 0.6701 GB, free: 6.016 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003676/0.3917, allocations: 80 kB / 0.6702 GB, free: 5.938 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.864e-05/0.3918, allocations: 52 kB / 0.6703 GB, free: 5.887 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007027/0.3988, allocations: 2.796 MB / 0.673 GB, free: 3.074 MB / 478.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.02124/0.4201, allocations: 9.907 MB / 0.6827 GB, free: 8.742 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0117/0.4318, allocations: 4.224 MB / 0.6868 GB, free: 4.383 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004471/0.4363, allocations: 1.979 MB / 0.6887 GB, free: 2.398 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003524/0.4367, allocations: 41.95 kB / 0.6888 GB, free: 2.355 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005119/0.4418, allocations: 2.248 MB / 0.691 GB, free: 88 kB / 494.1 MB Notification: Performance of pre-optimization done (n=250): time 6.532e-06/0.4418, allocations: 0 / 0.691 GB, free: 88 kB / 494.1 MB Notification: Performance of matching and sorting (n=250): time 0.1328/0.5747, allocations: 28.82 MB / 0.7191 GB, free: 3.141 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.5748, allocations: 180.2 kB / 0.7193 GB, free: 2.93 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004139/0.579, allocations: 2.329 MB / 0.7215 GB, free: 0.582 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0006376/0.5796, allocations: 73.77 kB / 0.7216 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001131/0.5808, allocations: 1.176 MB / 0.7228 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0013/0.5821, allocations: 0.8935 MB / 0.7236 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001714/0.5838, allocations: 0.566 MB / 0.7242 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.362e-05/0.5839, allocations: 301.1 kB / 0.7245 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00489/0.5888, allocations: 1.986 MB / 0.7264 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005279/0.5941, allocations: 2.358 MB / 0.7287 GB, free: 9.102 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06256/0.6567, allocations: 14.38 MB / 0.7428 GB, free: 10.49 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-05/0.6567, allocations: 4 kB / 0.7428 GB, free: 10.49 MB / 0.545 GB Notification: Performance of matching and sorting (n=425) (initialization): time 0.04704/0.7038, allocations: 12.61 MB / 0.7551 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001179/0.7039, allocations: 110.8 kB / 0.7552 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.511e-05/0.704, allocations: 11.94 kB / 0.7552 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02128/0.7253, allocations: 5.438 MB / 0.7605 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00323/0.7285, allocations: 0.5812 MB / 0.7611 GB, free: 7.641 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3146/1.043, allocations: 23.63 MB / 0.7841 GB, free: 121.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004861/1.048, allocations: 0.4915 MB / 0.7846 GB, free: 121.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006082/1.049, allocations: 115.8 kB / 0.7847 GB, free: 121.2 MB / 0.5606 GB Warning: Assuming fixed start value for the following 6 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Syn2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (336): * Single equations (assignments): 331 * Array equations: 0 * Algorithm blocks: 4 * 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 {(63,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001439/1.05, allocations: 0.537 MB / 0.7853 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007215/1.051, allocations: 301.3 kB / 0.7856 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03983/1.091, allocations: 11.95 MB / 0.7972 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/1.091, allocations: 24.17 kB / 0.7972 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.312e-05/1.091, allocations: 19.69 kB / 0.7973 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.371e-05/1.091, allocations: 11.53 kB / 0.7973 GB, free: 118.3 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.04267/1.134, allocations: 15.58 MB / 0.8125 GB, free: 106.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.896e-05/1.134, allocations: 0 / 0.8125 GB, free: 106.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/1.135, allocations: 250.8 kB / 0.8127 GB, free: 105.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01745/1.153, allocations: 5.287 MB / 0.8179 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005628/1.153, allocations: 55.98 kB / 0.8179 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05614/1.209, allocations: 24.93 MB / 0.8423 GB, free: 75.23 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.209, allocations: 4 kB / 0.8423 GB, free: 75.23 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04318/1.253, allocations: 14.33 MB / 0.8563 GB, free: 60.79 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008425/1.254, allocations: 420.1 kB / 0.8567 GB, free: 60.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007851/1.254, allocations: 47.94 kB / 0.8567 GB, free: 60.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003388/1.258, allocations: 299.6 kB / 0.857 GB, free: 60.02 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002181/1.26, allocations: 0.5841 MB / 0.8576 GB, free: 59.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003471/1.26, allocations: 63.98 kB / 0.8577 GB, free: 59.37 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002136/1.262, allocations: 1.543 MB / 0.8592 GB, free: 57.82 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.31e-07/1.262, allocations: 0 / 0.8592 GB, free: 57.82 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004005/1.267, allocations: 1.194 MB / 0.8603 GB, free: 56.62 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 19 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e1d,Syn2.e2q,Syn2.e2d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (159): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(66,22,7.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04366/1.31, allocations: 14.98 MB / 0.8749 GB, free: 41.53 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01849/1.329, allocations: 6.795 MB / 0.8816 GB, free: 34.64 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.329, allocations: 5.031 kB / 0.8816 GB, free: 34.64 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0134/1.342, allocations: 4.434 MB / 0.8859 GB, free: 30.14 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002517/1.345, allocations: 269.2 kB / 0.8862 GB, free: 29.88 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1126/1.457, allocations: 42.13 MB / 0.9273 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001637/1.459, allocations: 1.815 MB / 0.9291 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001216/1.46, allocations: 262.8 kB / 0.9293 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001723/1.462, allocations: 1.245 MB / 0.9306 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of SimCode: time 7.41e-07/1.462, allocations: 4 kB / 0.9306 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1479/1.61, allocations: 94.78 MB / 1.023 GB, free: 1.371 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.77/19.38, allocations: 10.09 kB / 1.023 GB, free: 1.363 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe 2>&1)