Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) 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 3.2.3+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 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08718/0.08718, allocations: 12.59 MB / 28.23 MB, free: 0.75 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 115.4 kB / 31.84 MB, free: 3.883 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.1 MB / 240.4 MB, free: 12.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001592/0.001592, allocations: 191.7 kB / 290.7 MB, free: 10.95 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.4324/0.4324, allocations: 78.5 MB / 419.3 MB, free: 10.79 MB / 302.1 MB Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: OpenIPSL requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002635/0.002635, allocations: 138.6 kB / 0.5559 GB, free: 17.3 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1379, allocations: 68.12 MB / 0.6224 GB, free: 13.15 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.007173/0.1452, allocations: 6.56 MB / 0.6288 GB, free: 6.551 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.004381/0.1496, allocations: 1.924 MB / 0.6307 GB, free: 4.621 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000904/0.1505, allocations: 8 kB / 0.6307 GB, free: 4.613 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009092/0.1515, allocations: 238 kB / 0.6309 GB, free: 4.379 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002713/0.1542, allocations: 0.8033 MB / 0.6317 GB, free: 3.578 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001559/0.1558, allocations: 0.6312 MB / 0.6323 GB, free: 2.949 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002109/0.1579, allocations: 1.573 MB / 0.6339 GB, free: 1.371 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000618/0.1585, allocations: 326.4 kB / 0.6342 GB, free: 1.039 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001272/0.1598, allocations: 0.6496 MB / 0.6348 GB, free: 396 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001141/0.161, allocations: 0.8285 MB / 0.6356 GB, free: 15.55 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000204/0.1612, allocations: 120 kB / 0.6357 GB, free: 15.43 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005089/0.1617, allocations: 263.7 kB / 0.636 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000281/0.162, allocations: 326.7 kB / 0.6363 GB, free: 14.86 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006333/0.1626, allocations: 0.6718 MB / 0.6369 GB, free: 14.18 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001877/0.1645, allocations: 1.669 MB / 0.6386 GB, free: 12.51 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1645, allocations: 0 / 0.6386 GB, free: 12.51 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1645, allocations: 0 / 0.6386 GB, free: 12.51 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.035e-05/0.1646, allocations: 0 / 0.6386 GB, free: 12.51 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008887/0.1735, allocations: 2.73 MB / 0.6412 GB, free: 9.711 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.1735, allocations: 15.98 kB / 0.6413 GB, free: 9.695 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005031/0.1786, allocations: 0.7796 MB / 0.642 GB, free: 8.914 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.1801, allocations: 0.899 MB / 0.6429 GB, free: 7.961 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002928/0.1804, allocations: 264.2 kB / 0.6431 GB, free: 7.664 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001635/0.1806, allocations: 83.95 kB / 0.6432 GB, free: 7.582 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002136/0.1827, allocations: 1.083 MB / 0.6443 GB, free: 6.488 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.1828, allocations: 0 / 0.6443 GB, free: 6.488 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.882e-05/0.1829, allocations: 32 kB / 0.6443 GB, free: 6.457 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.1829, allocations: 20 kB / 0.6443 GB, free: 6.438 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/0.1849, allocations: 0.9877 MB / 0.6453 GB, free: 5.449 MB / 462.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.006547/0.1915, allocations: 3.805 MB / 0.649 GB, free: 1.465 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007132/0.1987, allocations: 2.373 MB / 0.6513 GB, free: 15 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001441/0.2001, allocations: 0.6762 MB / 0.652 GB, free: 14.32 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001152/0.2003, allocations: 16.98 kB / 0.652 GB, free: 14.31 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001584/0.2019, allocations: 0.8177 MB / 0.6528 GB, free: 13.47 MB / 478.1 MB Notification: Performance of pre-optimization done (n=95): time 2.665e-06/0.2019, allocations: 0 / 0.6528 GB, free: 13.47 MB / 478.1 MB Notification: Performance of matching and sorting (n=95): time 0.02875/0.2306, allocations: 7.187 MB / 0.6598 GB, free: 6.223 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.2308, allocations: 123.7 kB / 0.6599 GB, free: 6.078 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001946/0.2327, allocations: 1.095 MB / 0.661 GB, free: 4.969 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002374/0.233, allocations: 45.7 kB / 0.6611 GB, free: 4.918 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003873/0.2334, allocations: 497.4 kB / 0.6615 GB, free: 4.426 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004202/0.2338, allocations: 376.8 kB / 0.6619 GB, free: 4.055 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000517/0.2343, allocations: 283.5 kB / 0.6622 GB, free: 3.773 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.2345, allocations: 301.1 kB / 0.6624 GB, free: 3.477 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/0.2361, allocations: 0.7574 MB / 0.6632 GB, free: 2.719 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/0.2379, allocations: 0.9225 MB / 0.6641 GB, free: 1.754 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02335/0.2613, allocations: 5.559 MB / 0.6695 GB, free: 12.11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.037e-05/0.2613, allocations: 0 / 0.6695 GB, free: 12.11 MB / 494.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01386/0.2752, allocations: 4.372 MB / 0.6738 GB, free: 7.707 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.915e-05/0.2753, allocations: 63.34 kB / 0.6738 GB, free: 7.633 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.575e-05/0.2753, allocations: 4 kB / 0.6738 GB, free: 7.629 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005843/0.2812, allocations: 1.591 MB / 0.6754 GB, free: 6.035 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.2827, allocations: 275.6 kB / 0.6757 GB, free: 5.766 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3345/0.6172, allocations: 8.503 MB / 0.684 GB, free: 50.63 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001973/0.6192, allocations: 202.6 kB / 0.6842 GB, free: 50.63 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001768/0.6194, allocations: 59.11 kB / 0.6842 GB, free: 50.63 MB / 494.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006134/0.62, allocations: 297.2 kB / 0.6845 GB, free: 50.49 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002742/0.6203, allocations: 133.2 kB / 0.6846 GB, free: 50.49 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01403/0.6344, allocations: 3.867 MB / 0.6884 GB, free: 50.34 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.061e-05/0.6345, allocations: 9.719 kB / 0.6884 GB, free: 50.34 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.942e-05/0.6345, allocations: 7.188 kB / 0.6884 GB, free: 50.34 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.909e-05/0.6345, allocations: 10.42 kB / 0.6884 GB, free: 50.34 MB / 494.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 postOpt removeSimpleEquations (simulation): time 0.01629/0.6508, allocations: 5.445 MB / 0.6937 GB, free: 48.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-05/0.6509, allocations: 3.391 kB / 0.6938 GB, free: 48.59 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006379/0.6515, allocations: 102.4 kB / 0.6938 GB, free: 48.58 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005489/0.657, allocations: 1.61 MB / 0.6954 GB, free: 48.35 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002176/0.6573, allocations: 29.3 kB / 0.6954 GB, free: 48.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01995/0.6772, allocations: 9.633 MB / 0.7049 GB, free: 42.95 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.6773, allocations: 5.359 kB / 0.7049 GB, free: 42.95 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01432/0.6916, allocations: 4.743 MB / 0.7095 GB, free: 41.38 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005366/0.6922, allocations: 229.9 kB / 0.7097 GB, free: 41.19 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001887/0.6924, allocations: 21.08 kB / 0.7097 GB, free: 41.17 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.6935, allocations: 111.2 kB / 0.7098 GB, free: 41.12 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006197/0.6941, allocations: 191.7 kB / 0.71 GB, free: 41.01 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.647e-05/0.6942, allocations: 31.69 kB / 0.7101 GB, free: 41 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.001024/0.6953, allocations: 0.7308 MB / 0.7108 GB, free: 40.59 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6953, allocations: 0 / 0.7108 GB, free: 40.59 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001532/0.6968, allocations: 474.4 kB / 0.7112 GB, free: 40.53 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002737/0.6971, allocations: 136.5 kB / 0.7113 GB, free: 40.41 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005562/0.7027, allocations: 2.529 MB / 0.7138 GB, free: 39.05 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.7027, allocations: 0 / 0.7138 GB, free: 39.05 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003809/0.7065, allocations: 1.6 MB / 0.7154 GB, free: 38.09 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.7076, allocations: 121.3 kB / 0.7155 GB, free: 38.01 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003549/0.7112, allocations: 2.23 MB / 0.7177 GB, free: 36.65 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004682/0.7116, allocations: 1.118 MB / 0.7188 GB, free: 35.77 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004072/0.7121, allocations: 121.1 kB / 0.7189 GB, free: 35.71 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002392/0.7123, allocations: 78.52 kB / 0.719 GB, free: 35.66 MB / 494.1 MB Notification: Performance of SimCode: time 1.613e-06/0.7123, allocations: 0 / 0.719 GB, free: 35.66 MB / 494.1 MB Notification: Performance of Templates: time 0.03108/0.7434, allocations: 23.85 MB / 0.7423 GB, free: 11.85 MB / 494.1 MB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)