Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_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.007314/0.007314, allocations: 102.3 kB / 15.73 MB, free: 5.582 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.333/1.333, allocations: 222.9 MB / 239.4 MB, free: 4.57 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.001526/0.001526, allocations: 187.5 kB / 289.7 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5173/0.5173, allocations: 91.89 MB / 431.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 78.88 kB / 0.5723 GB, free: 33.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1389, allocations: 71.29 MB / 0.6419 GB, free: 4.023 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.01198/0.151, allocations: 13.61 MB / 0.6552 GB, free: 6.355 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008171/0.1592, allocations: 3.471 MB / 0.6586 GB, free: 2.871 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003185/0.1624, allocations: 35.94 kB / 0.6586 GB, free: 2.836 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002144/0.1647, allocations: 0.5498 MB / 0.6592 GB, free: 2.281 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005569/0.1702, allocations: 1.564 MB / 0.6607 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003857/0.1741, allocations: 1.515 MB / 0.6622 GB, free: 15.22 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.005489/0.1796, allocations: 3.718 MB / 0.6658 GB, free: 11.48 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001524/0.1812, allocations: 0.8934 MB / 0.6667 GB, free: 10.54 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002706/0.1839, allocations: 1.532 MB / 0.6682 GB, free: 9.004 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002685/0.1866, allocations: 1.952 MB / 0.6701 GB, free: 7.043 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008394/0.1875, allocations: 284 kB / 0.6704 GB, free: 6.766 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001227/0.1887, allocations: 435.9 kB / 0.6708 GB, free: 6.34 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007501/0.1895, allocations: 0.7584 MB / 0.6715 GB, free: 5.578 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001829/0.1913, allocations: 1.631 MB / 0.6731 GB, free: 3.938 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004793/0.1961, allocations: 3.967 MB / 0.677 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.1961, allocations: 0 / 0.677 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1962, allocations: 3.938 kB / 0.677 GB, free: 15.95 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001312/0.1963, allocations: 0 / 0.677 GB, free: 15.95 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: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02277/0.2191, allocations: 6.575 MB / 0.6834 GB, free: 9.281 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.416e-05/0.2191, allocations: 12.03 kB / 0.6834 GB, free: 9.27 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005682/0.2197, allocations: 299.2 kB / 0.6837 GB, free: 8.969 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0144/0.2341, allocations: 2.279 MB / 0.6859 GB, free: 6.684 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004684/0.2389, allocations: 1.874 MB / 0.6878 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008301/0.2397, allocations: 0.7252 MB / 0.6885 GB, free: 3.902 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001/0.2407, allocations: 223.8 kB / 0.6887 GB, free: 3.684 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008647/0.2494, allocations: 3.035 MB / 0.6916 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.21e-05/0.2495, allocations: 0 / 0.6916 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006513/0.2502, allocations: 87.94 kB / 0.6917 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.905e-05/0.2503, allocations: 52 kB / 0.6918 GB, free: 444 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00713/0.2574, allocations: 2.784 MB / 0.6945 GB, free: 13.63 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.02194/0.2794, allocations: 9.797 MB / 0.7041 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01064/0.29, allocations: 4.184 MB / 0.7081 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004224/0.2943, allocations: 1.956 MB / 0.7101 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004552/0.2948, allocations: 41.95 kB / 0.7101 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00505/0.2999, allocations: 2.239 MB / 0.7123 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=247): time 7.464e-06/0.2999, allocations: 0 / 0.7123 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of matching and sorting (n=247): time 0.1133/0.4132, allocations: 29.47 MB / 0.7411 GB, free: 13.25 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/0.4134, allocations: 180.2 kB / 0.7412 GB, free: 13.03 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004263/0.4176, allocations: 2.273 MB / 0.7434 GB, free: 10.74 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007181/0.4184, allocations: 73.7 kB / 0.7435 GB, free: 10.66 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001057/0.4194, allocations: 1.172 MB / 0.7447 GB, free: 9.477 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00144/0.4209, allocations: 0.8704 MB / 0.7455 GB, free: 8.594 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00237/0.4233, allocations: 0.5579 MB / 0.7461 GB, free: 8.027 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.593e-05/0.4234, allocations: 301.1 kB / 0.7463 GB, free: 7.73 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004509/0.4279, allocations: 1.947 MB / 0.7482 GB, free: 5.781 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004803/0.4327, allocations: 2.31 MB / 0.7505 GB, free: 3.379 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05238/0.4851, allocations: 14 MB / 0.7642 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.039e-05/0.4852, allocations: 7.938 kB / 0.7642 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of matching and sorting (n=413) (initialization): time 0.3369/0.8221, allocations: 12.28 MB / 0.7762 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001089/0.8223, allocations: 120.8 kB / 0.7763 GB, free: 108.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.594e-05/0.8224, allocations: 8.5 kB / 0.7763 GB, free: 108.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01769/0.8401, allocations: 5.314 MB / 0.7815 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002838/0.8429, allocations: 0.562 MB / 0.782 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05634/0.8993, allocations: 23.48 MB / 0.805 GB, free: 98.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004285/0.9036, allocations: 483.8 kB / 0.8054 GB, free: 98.07 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007875/0.9045, allocations: 119.9 kB / 0.8055 GB, free: 97.95 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 order3_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 (325): * Single equations (assignments): 320 * 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,26)} Notification: Performance of prepare postOptimizeDAE: time 0.001995/0.9065, allocations: 0.526 MB / 0.8061 GB, free: 97.41 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/0.9076, allocations: 299 kB / 0.8063 GB, free: 97.14 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03459/0.9422, allocations: 11.92 MB / 0.818 GB, free: 85.19 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.008e-05/0.9423, allocations: 24 kB / 0.818 GB, free: 85.17 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.199e-05/0.9423, allocations: 20 kB / 0.818 GB, free: 85.15 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.821e-05/0.9424, allocations: 11.95 kB / 0.818 GB, free: 85.14 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.04037/0.9828, allocations: 15.48 MB / 0.8331 GB, free: 69.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.793e-05/0.9829, allocations: 0 / 0.8331 GB, free: 69.59 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001457/0.9843, allocations: 247.6 kB / 0.8334 GB, free: 69.34 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01526/0.9996, allocations: 5.279 MB / 0.8385 GB, free: 64.05 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000722/1, allocations: 55.98 kB / 0.8386 GB, free: 64 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05185/1.052, allocations: 24.93 MB / 0.8629 GB, free: 38.67 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.052, allocations: 4 kB / 0.8629 GB, free: 38.66 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03838/1.091, allocations: 14.26 MB / 0.8769 GB, free: 24.29 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009442/1.092, allocations: 412.1 kB / 0.8773 GB, free: 23.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008981/1.093, allocations: 44 kB / 0.8773 GB, free: 23.85 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003051/1.096, allocations: 299.6 kB / 0.8776 GB, free: 23.55 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002169/1.098, allocations: 0.5802 MB / 0.8782 GB, free: 22.97 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003442/1.098, allocations: 63.98 kB / 0.8782 GB, free: 22.91 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002157/1.1, allocations: 1.507 MB / 0.8797 GB, free: 21.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.61e-07/1.1, allocations: 4 kB / 0.8797 GB, free: 21.39 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00379/1.104, allocations: 1.174 MB / 0.8808 GB, free: 20.22 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,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 (156): * Single equations (assignments): 151 * 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.03855/1.143, allocations: 14.9 MB / 0.8954 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01599/1.159, allocations: 6.706 MB / 0.9019 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/1.159, allocations: 0 / 0.9019 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01266/1.172, allocations: 4.395 MB / 0.9062 GB, free: 9.98 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002481/1.174, allocations: 265 kB / 0.9065 GB, free: 9.723 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1052/1.279, allocations: 41.29 MB / 0.9468 GB, free: 24 kB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001501/1.281, allocations: 1.813 MB / 0.9486 GB, free: 14.18 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001171/1.282, allocations: 262.5 kB / 0.9488 GB, free: 13.92 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001613/1.284, allocations: 1.23 MB / 0.95 GB, free: 12.69 MB / 0.6231 GB Notification: Performance of SimCode: time 8.42e-07/1.284, allocations: 0 / 0.95 GB, free: 12.69 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1484/1.432, allocations: 89.61 MB / 1.038 GB, free: 3.293 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.94/19.37, allocations: 3.859 kB / 1.038 GB, free: 3.289 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)