Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_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.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07009/0.07009, allocations: 12.6 MB / 28.76 MB, free: 392 kB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008681/0.0008681, allocations: 107.5 kB / 32.37 MB, free: 3.477 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.107/1.107, allocations: 205.1 MB / 241 MB, free: 12.45 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.00113/0.00113, allocations: 191.5 kB / 291.2 MB, free: 13.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3684/0.3684, allocations: 78.51 MB / 419.8 MB, free: 11.36 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.002377/0.002377, allocations: 131.8 kB / 0.4887 GB, free: 10.84 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.231, allocations: 68.11 MB / 0.5552 GB, free: 32.71 MB / 398.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005226/0.2362, allocations: 6.607 MB / 0.5617 GB, free: 27.88 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002741/0.239, allocations: 1.932 MB / 0.5636 GB, free: 26.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003623/0.2394, allocations: 14.53 kB / 0.5636 GB, free: 26.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004838/0.2399, allocations: 239 kB / 0.5638 GB, free: 26.14 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001335/0.2412, allocations: 0.7891 MB / 0.5646 GB, free: 25.5 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.0009196/0.2422, allocations: 0.6356 MB / 0.5652 GB, free: 25.03 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.2432, allocations: 1.574 MB / 0.5667 GB, free: 24.09 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003565/0.2436, allocations: 324.3 kB / 0.567 GB, free: 23.92 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005509/0.2441, allocations: 0.6559 MB / 0.5677 GB, free: 23.51 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005915/0.2447, allocations: 0.8206 MB / 0.5685 GB, free: 22.95 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001563/0.2449, allocations: 120.8 kB / 0.5686 GB, free: 22.95 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003791/0.2453, allocations: 258.5 kB / 0.5689 GB, free: 22.88 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001938/0.2455, allocations: 333.1 kB / 0.5692 GB, free: 22.61 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003897/0.2459, allocations: 0.6695 MB / 0.5698 GB, free: 22.09 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009843/0.2469, allocations: 1.64 MB / 0.5714 GB, free: 20.85 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2469, allocations: 1.344 kB / 0.5714 GB, free: 20.85 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2469, allocations: 0 / 0.5714 GB, free: 20.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.692e-05/0.2469, allocations: 0 / 0.5714 GB, free: 20.85 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.00712/0.254, allocations: 2.695 MB / 0.5741 GB, free: 19.13 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.933e-05/0.2541, allocations: 13.61 kB / 0.5741 GB, free: 19.13 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004497/0.2586, allocations: 0.7724 MB / 0.5748 GB, free: 18.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.2596, allocations: 0.8843 MB / 0.5757 GB, free: 18.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.2598, allocations: 259.9 kB / 0.5759 GB, free: 17.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.26, allocations: 83.34 kB / 0.576 GB, free: 17.83 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/0.2616, allocations: 1.092 MB / 0.5771 GB, free: 16.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.2616, allocations: 3.984 kB / 0.5771 GB, free: 16.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.973e-05/0.2617, allocations: 32 kB / 0.5771 GB, free: 16.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.879e-06/0.2617, allocations: 16 kB / 0.5771 GB, free: 16.92 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/0.2633, allocations: 0.9877 MB / 0.5781 GB, free: 15.93 MB / 398.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.004564/0.2678, allocations: 3.824 MB / 0.5818 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006078/0.2739, allocations: 2.37 MB / 0.5841 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.275, allocations: 0.68 MB / 0.5848 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.483e-05/0.275, allocations: 24.97 kB / 0.5848 GB, free: 8.762 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001166/0.2762, allocations: 0.8138 MB / 0.5856 GB, free: 7.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=96): time 2.184e-06/0.2762, allocations: 0 / 0.5856 GB, free: 7.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=96): time 0.02354/0.2998, allocations: 7.081 MB / 0.5925 GB, free: 0.7812 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.539e-05/0.2998, allocations: 119.8 kB / 0.5927 GB, free: 0.6406 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001106/0.3009, allocations: 1.083 MB / 0.5937 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.999e-05/0.301, allocations: 45.7 kB / 0.5938 GB, free: 15.49 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003113/0.3013, allocations: 496.8 kB / 0.5942 GB, free: 15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002759/0.3016, allocations: 362.9 kB / 0.5946 GB, free: 14.64 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004464/0.3021, allocations: 287.4 kB / 0.5948 GB, free: 14.36 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.188e-05/0.3022, allocations: 305.1 kB / 0.5951 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.3036, allocations: 0.7613 MB / 0.5959 GB, free: 13.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001545/0.3052, allocations: 0.942 MB / 0.5968 GB, free: 12.31 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02089/0.3261, allocations: 5.598 MB / 0.6023 GB, free: 6.629 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.3261, allocations: 0 / 0.6023 GB, free: 6.629 MB / 414.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01202/0.3381, allocations: 4.328 MB / 0.6065 GB, free: 2.273 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.741e-05/0.3382, allocations: 63.39 kB / 0.6066 GB, free: 2.199 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.3382, allocations: 4 kB / 0.6066 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00492/0.3431, allocations: 1.515 MB / 0.608 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.3443, allocations: 291.6 kB / 0.6083 GB, free: 400 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01735/0.3617, allocations: 8.273 MB / 0.6164 GB, free: 7.965 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/0.3631, allocations: 198.8 kB / 0.6166 GB, free: 7.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.3632, allocations: 63.91 kB / 0.6166 GB, free: 7.707 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" 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 (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004634/0.3637, allocations: 303.7 kB / 0.6169 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001819/0.3639, allocations: 130.3 kB / 0.6171 GB, free: 7.266 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01157/0.3755, allocations: 3.865 MB / 0.6208 GB, free: 3.367 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.3755, allocations: 12 kB / 0.6208 GB, free: 3.355 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.3755, allocations: 8 kB / 0.6209 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.3755, allocations: 11.97 kB / 0.6209 GB, free: 3.336 MB / 430.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.0128/0.3883, allocations: 5.465 MB / 0.6262 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3883, allocations: 0 / 0.6262 GB, free: 13.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004858/0.3888, allocations: 95.91 kB / 0.6263 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004971/0.3938, allocations: 1.614 MB / 0.6279 GB, free: 12.05 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.386e-05/0.3939, allocations: 20 kB / 0.6279 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01803/0.4119, allocations: 9.61 MB / 0.6373 GB, free: 2.125 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.4119, allocations: 0 / 0.6373 GB, free: 2.125 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/0.4248, allocations: 4.737 MB / 0.6419 GB, free: 13.36 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002536/0.425, allocations: 223.2 kB / 0.6421 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.4252, allocations: 16 kB / 0.6421 GB, free: 13.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.4262, allocations: 119.9 kB / 0.6422 GB, free: 12.98 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004265/0.4267, allocations: 196.8 kB / 0.6424 GB, free: 12.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-05/0.4267, allocations: 28 kB / 0.6425 GB, free: 12.76 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009016/0.4276, allocations: 0.7274 MB / 0.6432 GB, free: 12.03 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4277, allocations: 0 / 0.6432 GB, free: 12.03 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001097/0.4288, allocations: 475.7 kB / 0.6436 GB, free: 11.56 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,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 (64): * Single equations (assignments): 61 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002421/0.429, allocations: 133.6 kB / 0.6438 GB, free: 11.42 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005713/0.4347, allocations: 2.545 MB / 0.6462 GB, free: 8.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4347, allocations: 4.062 kB / 0.6462 GB, free: 8.836 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003855/0.4386, allocations: 1.602 MB / 0.6478 GB, free: 7.195 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007032/0.4393, allocations: 117.7 kB / 0.6479 GB, free: 7.078 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003186/0.4425, allocations: 2.32 MB / 0.6502 GB, free: 4.727 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005111/0.443, allocations: 1.128 MB / 0.6513 GB, free: 3.57 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002582/0.4433, allocations: 87.41 kB / 0.6514 GB, free: 3.484 MB / 462.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4433, allocations: 4 kB / 0.6514 GB, free: 3.48 MB / 462.1 MB Notification: Performance of Templates: time 0.02202/0.4653, allocations: 23.42 MB / 0.6742 GB, free: 12.07 MB / 494.1 MB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)