Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_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.007057/0.007057, allocations: 96.61 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.324/1.324, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001491/0.00149, allocations: 184.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4906/0.4906, allocations: 91.91 MB / 431.8 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 81.28 kB / 0.5723 GB, free: 34.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1181, allocations: 71.28 MB / 0.6419 GB, free: 4.164 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01289/0.131, allocations: 13.72 MB / 0.6553 GB, free: 6.387 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.007062/0.1381, allocations: 3.472 MB / 0.6587 GB, free: 2.898 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001575/0.1397, allocations: 28 kB / 0.6587 GB, free: 2.871 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001234/0.141, allocations: 0.5693 MB / 0.6593 GB, free: 2.297 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003429/0.1444, allocations: 1.551 MB / 0.6608 GB, free: 0.7422 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003062/0.1475, allocations: 1.522 MB / 0.6623 GB, free: 15.24 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.00397/0.1515, allocations: 3.725 MB / 0.6659 GB, free: 11.5 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001291/0.1528, allocations: 0.9011 MB / 0.6668 GB, free: 10.55 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00209/0.1549, allocations: 1.525 MB / 0.6683 GB, free: 9.016 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002373/0.1573, allocations: 1.952 MB / 0.6702 GB, free: 7.055 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000484/0.1578, allocations: 284 kB / 0.6705 GB, free: 6.777 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008468/0.1586, allocations: 427.9 kB / 0.6709 GB, free: 6.359 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005948/0.1592, allocations: 0.7584 MB / 0.6716 GB, free: 5.598 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001352/0.1606, allocations: 1.635 MB / 0.6732 GB, free: 3.953 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003641/0.1642, allocations: 3.991 MB / 0.6771 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.1643, allocations: 4 kB / 0.6771 GB, free: 15.94 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1643, allocations: 0 / 0.6771 GB, free: 15.94 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.947e-05/0.1643, allocations: 0 / 0.6771 GB, free: 15.94 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02134/0.1857, allocations: 6.685 MB / 0.6836 GB, free: 9.156 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.1857, allocations: 8.031 kB / 0.6837 GB, free: 9.148 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000364/0.1861, allocations: 299.3 kB / 0.6839 GB, free: 8.844 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01482/0.2009, allocations: 2.296 MB / 0.6862 GB, free: 6.543 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003514/0.2045, allocations: 1.896 MB / 0.688 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006755/0.2052, allocations: 0.7291 MB / 0.6887 GB, free: 3.738 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004351/0.2056, allocations: 212 kB / 0.6889 GB, free: 3.531 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006145/0.2118, allocations: 3.032 MB / 0.6919 GB, free: 432 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.865e-05/0.2118, allocations: 0 / 0.6919 GB, free: 432 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002381/0.2121, allocations: 91.88 kB / 0.692 GB, free: 340 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.596e-05/0.2121, allocations: 55.98 kB / 0.692 GB, free: 284 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006/0.2181, allocations: 2.78 MB / 0.6948 GB, free: 13.48 MB / 0.4981 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 preOpt removeSimpleEquations (simulation): time 0.01849/0.2366, allocations: 9.85 MB / 0.7044 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01078/0.2474, allocations: 4.192 MB / 0.7085 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004232/0.2517, allocations: 1.964 MB / 0.7104 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003087/0.252, allocations: 41.95 kB / 0.7104 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004524/0.2566, allocations: 2.24 MB / 0.7126 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=248): time 3.887e-06/0.2566, allocations: 0 / 0.7126 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of matching and sorting (n=248): time 0.1182/0.3748, allocations: 28.19 MB / 0.7401 GB, free: 14.3 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.838e-05/0.3749, allocations: 180.2 kB / 0.7403 GB, free: 14.08 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003156/0.3781, allocations: 2.277 MB / 0.7425 GB, free: 11.79 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005033/0.3786, allocations: 69.7 kB / 0.7426 GB, free: 11.71 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008079/0.3794, allocations: 1.185 MB / 0.7438 GB, free: 10.52 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009084/0.3803, allocations: 0.9102 MB / 0.7447 GB, free: 9.598 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001075/0.3814, allocations: 0.5659 MB / 0.7452 GB, free: 9.023 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.52e-05/0.3815, allocations: 301.1 kB / 0.7455 GB, free: 8.727 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004324/0.3858, allocations: 1.958 MB / 0.7474 GB, free: 6.766 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004588/0.3904, allocations: 2.326 MB / 0.7497 GB, free: 4.348 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05301/0.4434, allocations: 14.01 MB / 0.7634 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.462e-05/0.4435, allocations: 3.938 kB / 0.7634 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.3052/0.7487, allocations: 12.52 MB / 0.7756 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.426e-05/0.7488, allocations: 116 kB / 0.7757 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.689e-05/0.7488, allocations: 6.688 kB / 0.7757 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0178/0.7666, allocations: 5.285 MB / 0.7809 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002869/0.7695, allocations: 0.5679 MB / 0.7814 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05474/0.8243, allocations: 23.2 MB / 0.8041 GB, free: 99.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004242/0.8286, allocations: 496.4 kB / 0.8046 GB, free: 99 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004556/0.8291, allocations: 120 kB / 0.8047 GB, free: 98.88 MB / 0.5606 GB Warning: Assuming fixed start value for the following 7 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 order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_1.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 (330): * Single equations (assignments): 325 * 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): 1 system {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001265/0.8303, allocations: 0.531 MB / 0.8052 GB, free: 98.34 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000692/0.831, allocations: 312.4 kB / 0.8055 GB, free: 98.07 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03737/0.8684, allocations: 11.91 MB / 0.8171 GB, free: 86.11 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.346e-05/0.8685, allocations: 24 kB / 0.8171 GB, free: 86.09 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.963e-05/0.8685, allocations: 24 kB / 0.8172 GB, free: 86.07 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.232e-05/0.8686, allocations: 11.95 kB / 0.8172 GB, free: 86.05 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.04006/0.9086, allocations: 15.5 MB / 0.8323 GB, free: 70.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.146e-05/0.9087, allocations: 0 / 0.8323 GB, free: 70.49 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/0.9102, allocations: 243.7 kB / 0.8325 GB, free: 70.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0162/0.9264, allocations: 5.249 MB / 0.8377 GB, free: 64.99 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006084/0.927, allocations: 44 kB / 0.8377 GB, free: 64.95 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05243/0.9795, allocations: 24.99 MB / 0.8621 GB, free: 39.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.9795, allocations: 0 / 0.8621 GB, free: 39.57 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04026/1.02, allocations: 14.29 MB / 0.8761 GB, free: 25.18 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009181/1.021, allocations: 425.6 kB / 0.8765 GB, free: 24.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005792/1.021, allocations: 47.94 kB / 0.8765 GB, free: 24.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002756/1.024, allocations: 299.6 kB / 0.8768 GB, free: 24.44 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00182/1.026, allocations: 0.5763 MB / 0.8774 GB, free: 23.86 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002265/1.026, allocations: 71.98 kB / 0.8774 GB, free: 23.79 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00194/1.028, allocations: 1.499 MB / 0.8789 GB, free: 22.29 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.01e-07/1.028, allocations: 0 / 0.8789 GB, free: 22.29 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003111/1.031, allocations: 1.179 MB / 0.88 GB, free: 21.14 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,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 (157): * Single equations (assignments): 152 * 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 {(65,23,7.8%)} * 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.04129/1.073, allocations: 14.92 MB / 0.8946 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0168/1.089, allocations: 6.634 MB / 0.9011 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.089, allocations: 0 / 0.9011 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01322/1.103, allocations: 4.417 MB / 0.9054 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002371/1.105, allocations: 271 kB / 0.9057 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1172/1.222, allocations: 41.88 MB / 0.9466 GB, free: 380 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001494/1.224, allocations: 1.813 MB / 0.9483 GB, free: 14.53 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001137/1.225, allocations: 258.5 kB / 0.9486 GB, free: 14.27 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001572/1.227, allocations: 1.23 MB / 0.9498 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of SimCode: time 7.22e-07/1.227, allocations: 0 / 0.9498 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1609/1.388, allocations: 87.76 MB / 1.035 GB, free: 5.492 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.91/19.3, allocations: 8 kB / 1.036 GB, free: 5.484 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.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_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)