Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.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.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_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.007302/0.007302, allocations: 100.3 kB / 15.73 MB, free: 6 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.372/1.372, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001536/0.001536, allocations: 199.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5136/0.5136, allocations: 91.9 MB / 431.8 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 78.75 kB / 0.5724 GB, free: 33.55 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1524, allocations: 71.28 MB / 0.642 GB, free: 3.949 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01972/0.1722, allocations: 21.83 MB / 0.6633 GB, free: 14.04 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.1844, allocations: 4.861 MB / 0.668 GB, free: 9.152 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005132/0.1896, allocations: 44 kB / 0.6681 GB, free: 9.109 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003046/0.1927, allocations: 0.8789 MB / 0.6689 GB, free: 8.223 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008566/0.2013, allocations: 2.033 MB / 0.6709 GB, free: 6.18 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005766/0.2071, allocations: 2.068 MB / 0.6729 GB, free: 4.145 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.00934/0.2164, allocations: 5.708 MB / 0.6785 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002724/0.2192, allocations: 1.32 MB / 0.6798 GB, free: 13.04 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004147/0.2233, allocations: 2.326 MB / 0.6821 GB, free: 10.71 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004874/0.2282, allocations: 2.932 MB / 0.6849 GB, free: 7.762 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001803/0.2301, allocations: 436 kB / 0.6854 GB, free: 7.336 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002215/0.2323, allocations: 0.578 MB / 0.6859 GB, free: 6.758 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001032/0.2333, allocations: 1.147 MB / 0.687 GB, free: 5.605 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003116/0.2365, allocations: 2.61 MB / 0.6896 GB, free: 2.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007241/0.2437, allocations: 6.22 MB / 0.6957 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.2437, allocations: 0 / 0.6957 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.843e-06/0.2438, allocations: 0 / 0.6957 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001716/0.2439, allocations: 0 / 0.6957 GB, free: 12.74 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.03165/0.2756, allocations: 9.156 MB / 0.7046 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.2757, allocations: 12.03 kB / 0.7046 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001319/0.277, allocations: 488.8 kB / 0.7051 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02732/0.3043, allocations: 4.009 MB / 0.709 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006824/0.3112, allocations: 2.654 MB / 0.7116 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001168/0.3124, allocations: 0.9612 MB / 0.7125 GB, free: 11.13 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001442/0.3138, allocations: 351.9 kB / 0.7129 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.3265, allocations: 4.727 MB / 0.7175 GB, free: 6.031 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.33e-05/0.3266, allocations: 4 kB / 0.7175 GB, free: 6.027 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000768/0.3274, allocations: 136 kB / 0.7176 GB, free: 5.895 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.232e-05/0.3275, allocations: 84 kB / 0.7177 GB, free: 5.812 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01014/0.3376, allocations: 4.252 MB / 0.7218 GB, free: 1.555 MB / 0.5137 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.03808/0.3757, allocations: 18.22 MB / 0.7396 GB, free: 14.15 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01349/0.3892, allocations: 4.988 MB / 0.7445 GB, free: 9.078 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006344/0.3956, allocations: 2.779 MB / 0.7472 GB, free: 6.289 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006951/0.3964, allocations: 74.83 kB / 0.7473 GB, free: 6.219 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007663/0.404, allocations: 3.169 MB / 0.7504 GB, free: 3.008 MB / 0.545 GB Notification: Performance of pre-optimization done (n=383): time 8.045e-06/0.4041, allocations: 0 / 0.7504 GB, free: 3.008 MB / 0.545 GB Notification: Performance of matching and sorting (n=383): time 0.6404/1.044, allocations: 68.04 MB / 0.8168 GB, free: 84.72 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/1.045, allocations: 149.8 kB / 0.817 GB, free: 84.55 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004048/1.049, allocations: 3.224 MB / 0.8201 GB, free: 82.18 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009318/1.05, allocations: 96.05 kB / 0.8202 GB, free: 82.13 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001121/1.051, allocations: 1.962 MB / 0.8221 GB, free: 80.98 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001479/1.052, allocations: 1.318 MB / 0.8234 GB, free: 79.68 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001269/1.053, allocations: 0.6704 MB / 0.8241 GB, free: 79 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.87e-05/1.054, allocations: 301.1 kB / 0.8244 GB, free: 78.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004951/1.058, allocations: 2.585 MB / 0.8269 GB, free: 76.11 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005322/1.064, allocations: 3.209 MB / 0.83 GB, free: 72.67 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06604/1.13, allocations: 18.78 MB / 0.8484 GB, free: 53.64 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.718e-05/1.13, allocations: 5.422 kB / 0.8484 GB, free: 53.63 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.05366/1.184, allocations: 17.24 MB / 0.8652 GB, free: 36.34 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.169e-05/1.184, allocations: 71.39 kB / 0.8653 GB, free: 36.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.434e-05/1.184, allocations: 16 kB / 0.8653 GB, free: 36.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02384/1.208, allocations: 7.149 MB / 0.8723 GB, free: 29.09 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003308/1.211, allocations: 0.6709 MB / 0.8729 GB, free: 28.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08575/1.297, allocations: 33.28 MB / 0.9054 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006614/1.303, allocations: 0.621 MB / 0.906 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001142/1.305, allocations: 156 kB / 0.9062 GB, free: 10.18 MB / 0.5762 GB Warning: Assuming fixed start value for the following 5 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.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 (403): * Single equations (assignments): 400 * 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.003111/1.308, allocations: 0.6662 MB / 0.9068 GB, free: 9.504 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001728/1.309, allocations: 458.3 kB / 0.9073 GB, free: 9.051 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05921/1.369, allocations: 16.84 MB / 0.9237 GB, free: 8.137 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.324e-05/1.369, allocations: 39.83 kB / 0.9238 GB, free: 8.102 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.051e-05/1.369, allocations: 31.94 kB / 0.9238 GB, free: 8.07 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001217/1.369, allocations: 21.75 kB / 0.9238 GB, free: 8.051 MB / 0.5919 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.06533/1.434, allocations: 21.82 MB / 0.9451 GB, free: 2.145 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.86e-05/1.434, allocations: 0.875 kB / 0.9451 GB, free: 2.145 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002467/1.437, allocations: 391.5 kB / 0.9455 GB, free: 1.762 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02769/1.465, allocations: 7.349 MB / 0.9527 GB, free: 10.4 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001137/1.466, allocations: 71.92 kB / 0.9527 GB, free: 10.33 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09231/1.558, allocations: 31.8 MB / 0.9838 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.558, allocations: 0 / 0.9838 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06727/1.625, allocations: 20.22 MB / 1.004 GB, free: 5.934 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001647/1.627, allocations: 0.557 MB / 1.004 GB, free: 5.352 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002205/1.629, allocations: 67.94 kB / 1.004 GB, free: 5.285 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005482/1.635, allocations: 381.3 kB / 1.005 GB, free: 4.914 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003849/1.639, allocations: 0.7805 MB / 1.005 GB, free: 4.133 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008232/1.64, allocations: 91.98 kB / 1.005 GB, free: 4.043 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.004308/1.644, allocations: 2.105 MB / 1.007 GB, free: 1.934 MB / 0.67 GB Notification: Performance of sort global known variables: time 4.51e-07/1.644, allocations: 0 / 1.007 GB, free: 1.934 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.007923/1.652, allocations: 1.794 MB / 1.009 GB, free: 140 kB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,order4.delta,order4.w,order4.e1q,order4.e1d,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 (247): * Single equations (assignments): 244 * 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 {(98,38,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.0694/1.721, allocations: 20.88 MB / 1.03 GB, free: 11.17 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.02934/1.751, allocations: 9.154 MB / 1.038 GB, free: 1.973 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/1.751, allocations: 112 / 1.038 GB, free: 1.973 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.3734/2.124, allocations: 6.14 MB / 1.044 GB, free: 243.6 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00308/2.127, allocations: 389.5 kB / 1.045 GB, free: 243.6 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1567/2.284, allocations: 58.69 MB / 1.102 GB, free: 212.5 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002176/2.286, allocations: 2.439 MB / 1.105 GB, free: 210 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001805/2.288, allocations: 379.1 kB / 1.105 GB, free: 209.6 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002216/2.29, allocations: 1.979 MB / 1.107 GB, free: 207.6 MB / 0.7012 GB Notification: Performance of SimCode: time 1.352e-06/2.29, allocations: 4 kB / 1.107 GB, free: 207.6 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2267/2.517, allocations: 130.9 MB / 1.235 GB, free: 76.92 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.04/24.56, allocations: 20.72 kB / 1.235 GB, free: 76.91 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)