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.004717/0.004718, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.306/1.306, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001314/0.001314, allocations: 200.4 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4845/0.4845, allocations: 91.9 MB / 431.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 78.19 kB / 0.5723 GB, free: 33.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.127, allocations: 71.28 MB / 0.6419 GB, free: 3.902 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.01145/0.1384, allocations: 13.72 MB / 0.6553 GB, free: 6.129 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.007116/0.1456, allocations: 3.475 MB / 0.6587 GB, free: 2.641 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002217/0.1479, allocations: 28 kB / 0.6587 GB, free: 2.613 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00155/0.1494, allocations: 0.5576 MB / 0.6593 GB, free: 2.051 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004607/0.1541, allocations: 1.567 MB / 0.6608 GB, free: 492 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003545/0.1576, allocations: 1.523 MB / 0.6623 GB, free: 14.98 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.005032/0.1627, allocations: 3.725 MB / 0.6659 GB, free: 11.23 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/0.164, allocations: 0.8973 MB / 0.6668 GB, free: 10.29 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00223/0.1663, allocations: 1.525 MB / 0.6683 GB, free: 8.758 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002197/0.1685, allocations: 1.948 MB / 0.6702 GB, free: 6.801 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005634/0.1691, allocations: 284 kB / 0.6705 GB, free: 6.523 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008312/0.1699, allocations: 427.9 kB / 0.6709 GB, free: 6.105 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005814/0.1705, allocations: 0.7623 MB / 0.6716 GB, free: 5.34 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001536/0.1721, allocations: 1.631 MB / 0.6732 GB, free: 3.699 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004012/0.1761, allocations: 3.967 MB / 0.6771 GB, free: 15.72 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1761, allocations: 4 kB / 0.6771 GB, free: 15.71 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1761, allocations: 3.938 kB / 0.6771 GB, free: 15.71 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.967e-05/0.1762, allocations: 0 / 0.6771 GB, free: 15.71 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.02141/0.1976, allocations: 6.575 MB / 0.6835 GB, free: 9.039 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.1977, allocations: 8.031 kB / 0.6835 GB, free: 9.031 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003904/0.1981, allocations: 303.3 kB / 0.6838 GB, free: 8.723 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01438/0.2125, allocations: 2.275 MB / 0.686 GB, free: 6.441 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003791/0.2163, allocations: 1.874 MB / 0.6879 GB, free: 4.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000659/0.217, allocations: 0.7291 MB / 0.6886 GB, free: 3.656 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005473/0.2176, allocations: 216 kB / 0.6888 GB, free: 3.445 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005807/0.2234, allocations: 3.035 MB / 0.6917 GB, free: 340 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.878e-05/0.2234, allocations: 0 / 0.6917 GB, free: 340 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002308/0.2237, allocations: 83.94 kB / 0.6918 GB, free: 256 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.629e-05/0.2237, allocations: 52 kB / 0.6919 GB, free: 204 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005712/0.2294, allocations: 2.78 MB / 0.6946 GB, free: 13.4 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.01794/0.2474, allocations: 9.848 MB / 0.7042 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009933/0.2574, allocations: 4.188 MB / 0.7083 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003876/0.2613, allocations: 1.96 MB / 0.7102 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003156/0.2616, allocations: 41.94 kB / 0.7102 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004553/0.2662, allocations: 2.232 MB / 0.7124 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=248): time 5.6e-06/0.2662, allocations: 0 / 0.7124 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of matching and sorting (n=248): time 0.1073/0.3735, allocations: 28.18 MB / 0.7399 GB, free: 14.24 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.048e-05/0.3737, allocations: 180.2 kB / 0.7401 GB, free: 14.03 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00336/0.377, allocations: 2.269 MB / 0.7423 GB, free: 11.74 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006532/0.3777, allocations: 73.77 kB / 0.7424 GB, free: 11.66 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009032/0.3786, allocations: 1.168 MB / 0.7435 GB, free: 10.48 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001185/0.3798, allocations: 0.8665 MB / 0.7444 GB, free: 9.602 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001121/0.381, allocations: 0.5657 MB / 0.7449 GB, free: 9.027 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.543e-05/0.3811, allocations: 305.1 kB / 0.7452 GB, free: 8.727 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004175/0.3852, allocations: 1.958 MB / 0.7471 GB, free: 6.766 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004656/0.3899, allocations: 2.314 MB / 0.7494 GB, free: 4.359 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05097/0.4409, allocations: 14.02 MB / 0.7631 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.554e-05/0.441, allocations: 3.938 kB / 0.7631 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.3079/0.7489, allocations: 12.5 MB / 0.7753 GB, free: 108.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.997e-05/0.749, allocations: 112.8 kB / 0.7754 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.327e-05/0.749, allocations: 6.312 kB / 0.7754 GB, free: 108 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01655/0.7656, allocations: 5.291 MB / 0.7806 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002771/0.7684, allocations: 0.5745 MB / 0.7812 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04959/0.818, allocations: 23.17 MB / 0.8038 GB, free: 99.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004101/0.8222, allocations: 485.5 kB / 0.8042 GB, free: 99.12 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005817/0.8228, allocations: 116 kB / 0.8044 GB, free: 99.01 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.001196/0.824, allocations: 0.5321 MB / 0.8049 GB, free: 98.46 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005713/0.8246, allocations: 297.7 kB / 0.8052 GB, free: 98.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03225/0.8568, allocations: 11.9 MB / 0.8168 GB, free: 86.25 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.642e-05/0.8569, allocations: 32 kB / 0.8168 GB, free: 86.21 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.218e-05/0.857, allocations: 16 kB / 0.8168 GB, free: 86.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.265e-05/0.857, allocations: 15.95 kB / 0.8168 GB, free: 86.18 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.03706/0.8941, allocations: 15.5 MB / 0.832 GB, free: 70.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-05/0.8942, allocations: 0 / 0.832 GB, free: 70.62 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001451/0.8956, allocations: 244.3 kB / 0.8322 GB, free: 70.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01455/0.9102, allocations: 5.247 MB / 0.8373 GB, free: 65.13 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006201/0.9109, allocations: 59.98 kB / 0.8374 GB, free: 65.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04801/0.9589, allocations: 24.94 MB / 0.8617 GB, free: 39.74 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.9589, allocations: 0 / 0.8617 GB, free: 39.74 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0379/0.9968, allocations: 14.27 MB / 0.8757 GB, free: 25.36 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008634/0.9978, allocations: 407.2 kB / 0.8761 GB, free: 24.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000704/0.9985, allocations: 51.94 kB / 0.8761 GB, free: 24.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002773/1.001, allocations: 295.6 kB / 0.8764 GB, free: 24.62 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002077/1.003, allocations: 0.5841 MB / 0.877 GB, free: 24.03 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003/1.004, allocations: 67.92 kB / 0.877 GB, free: 23.96 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001975/1.006, allocations: 1.503 MB / 0.8785 GB, free: 22.46 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/1.006, allocations: 0 / 0.8785 GB, free: 22.46 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003484/1.009, allocations: 1.17 MB / 0.8797 GB, free: 21.29 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.03734/1.047, allocations: 14.9 MB / 0.8942 GB, free: 6.273 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01597/1.063, allocations: 6.623 MB / 0.9007 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/1.063, allocations: 0 / 0.9007 GB, free: 15.59 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01285/1.075, allocations: 4.403 MB / 0.905 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/1.078, allocations: 262.2 kB / 0.9052 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1078/1.186, allocations: 41.77 MB / 0.946 GB, free: 0.6914 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001569/1.187, allocations: 1.813 MB / 0.9478 GB, free: 14.85 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001147/1.189, allocations: 258.5 kB / 0.948 GB, free: 14.59 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001609/1.19, allocations: 1.233 MB / 0.9492 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of SimCode: time 7.72e-07/1.19, allocations: 0 / 0.9492 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1475/1.338, allocations: 87.73 MB / 1.035 GB, free: 5.844 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.08/18.42, allocations: 4.062 kB / 1.035 GB, free: 5.84 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)