Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_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: translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00127/0.00127, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 239.5 MB, free: 4.754 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.001293/0.001293, allocations: 192.5 kB / 289.8 MB, free: 2.496 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5031/0.5031, allocations: 91.91 MB / 431.8 MB, free: 9.441 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 75.88 kB / 0.5019 GB, free: 8.152 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3234, allocations: 71.26 MB / 0.5714 GB, free: 36.49 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII): time 0.01401/0.3374, allocations: 23.49 MB / 0.5944 GB, free: 20.28 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01028/0.3478, allocations: 5.18 MB / 0.5994 GB, free: 16.52 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004733/0.3525, allocations: 51 kB / 0.5995 GB, free: 16.52 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003133/0.3557, allocations: 0.6712 MB / 0.6001 GB, free: 16.26 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007157/0.3629, allocations: 1.749 MB / 0.6018 GB, free: 15.03 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005095/0.368, allocations: 1.927 MB / 0.6037 GB, free: 13.93 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.007773/0.3758, allocations: 5.486 MB / 0.6091 GB, free: 11.15 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002553/0.3784, allocations: 1.152 MB / 0.6102 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003912/0.3823, allocations: 2.174 MB / 0.6123 GB, free: 9.508 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004304/0.3866, allocations: 2.838 MB / 0.6151 GB, free: 8.133 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001931/0.3886, allocations: 293.2 kB / 0.6154 GB, free: 8.129 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002902/0.3915, allocations: 430.6 kB / 0.6158 GB, free: 8.086 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00204/0.3936, allocations: 1.008 MB / 0.6168 GB, free: 7.445 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005124/0.3987, allocations: 2.479 MB / 0.6192 GB, free: 5.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006326/0.405, allocations: 4.779 MB / 0.6239 GB, free: 3.898 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.4051, allocations: 1.844 kB / 0.6239 GB, free: 3.898 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4051, allocations: 0 / 0.6239 GB, free: 3.898 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002568/0.4053, allocations: 0 / 0.6239 GB, free: 3.898 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 894 * Number of variables: 894 Notification: Performance of Generate backend data structure: time 0.03407/0.4394, allocations: 9.225 MB / 0.6329 GB, free: 15.72 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.4395, allocations: 10.09 kB / 0.6329 GB, free: 15.72 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02685/0.4663, allocations: 4.013 MB / 0.6368 GB, free: 11.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005928/0.4723, allocations: 2.678 MB / 0.6394 GB, free: 9.012 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008477/0.4732, allocations: 0.9612 MB / 0.6404 GB, free: 7.91 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007863/0.474, allocations: 344 kB / 0.6407 GB, free: 7.574 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009389/0.4834, allocations: 4.739 MB / 0.6453 GB, free: 2.805 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.592e-05/0.4834, allocations: 3.938 kB / 0.6453 GB, free: 2.801 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004031/0.4839, allocations: 140 kB / 0.6455 GB, free: 2.664 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.391e-05/0.4839, allocations: 84 kB / 0.6455 GB, free: 2.582 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008634/0.4926, allocations: 4.256 MB / 0.6497 GB, free: 14.32 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.03241/0.525, allocations: 18.38 MB / 0.6676 GB, free: 10.76 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01177/0.5368, allocations: 5.016 MB / 0.6725 GB, free: 5.664 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005731/0.5425, allocations: 2.79 MB / 0.6753 GB, free: 2.863 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004712/0.543, allocations: 78.86 kB / 0.6753 GB, free: 2.785 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006367/0.5494, allocations: 3.177 MB / 0.6784 GB, free: 15.57 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 7.495e-06/0.5494, allocations: 4 kB / 0.6784 GB, free: 15.56 MB / 494.1 MB Notification: Performance of matching and sorting (n=384): time 0.3034/0.8528, allocations: 67.77 MB / 0.7446 GB, free: 11.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.745e-05/0.853, allocations: 141.8 kB / 0.7448 GB, free: 11.44 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005484/0.8585, allocations: 3.25 MB / 0.7479 GB, free: 8.168 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001291/0.8598, allocations: 89.7 kB / 0.748 GB, free: 8.074 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001647/0.8614, allocations: 1.978 MB / 0.75 GB, free: 6.082 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00212/0.8636, allocations: 1.325 MB / 0.7512 GB, free: 4.738 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00153/0.8651, allocations: 0.6783 MB / 0.7519 GB, free: 4.047 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001034/0.8652, allocations: 301.1 kB / 0.7522 GB, free: 3.75 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005541/0.8708, allocations: 2.605 MB / 0.7547 GB, free: 1.137 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005943/0.8767, allocations: 3.237 MB / 0.7579 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3359/1.213, allocations: 19 MB / 0.7765 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.399e-05/1.213, allocations: 5.438 kB / 0.7765 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.05755/1.27, allocations: 17.29 MB / 0.7934 GB, free: 152 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.628e-05/1.27, allocations: 67.75 kB / 0.7934 GB, free: 152 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.138e-05/1.27, allocations: 15.12 kB / 0.7934 GB, free: 152 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02729/1.298, allocations: 7.154 MB / 0.8004 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003919/1.302, allocations: 0.6849 MB / 0.8011 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07312/1.375, allocations: 30.64 MB / 0.831 GB, free: 136.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006545/1.381, allocations: 0.6247 MB / 0.8316 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008066/1.382, allocations: 155.2 kB / 0.8318 GB, free: 136.3 MB / 0.5606 GB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.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 (407): * Single equations (assignments): 404 * 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.002038/1.384, allocations: 0.6705 MB / 0.8324 GB, free: 135.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001306/1.386, allocations: 459.5 kB / 0.8329 GB, free: 135.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04869/1.434, allocations: 16.87 MB / 0.8493 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-05/1.434, allocations: 39.98 kB / 0.8494 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.523e-05/1.434, allocations: 29.42 kB / 0.8494 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.771e-05/1.434, allocations: 15.94 kB / 0.8494 GB, free: 118.7 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.05515/1.49, allocations: 21.89 MB / 0.8708 GB, free: 96.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.02e-05/1.49, allocations: 0 / 0.8708 GB, free: 96.71 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0024/1.492, allocations: 391.5 kB / 0.8712 GB, free: 96.33 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02327/1.515, allocations: 7.378 MB / 0.8784 GB, free: 88.94 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001125/1.517, allocations: 71.98 kB / 0.8784 GB, free: 88.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06723/1.584, allocations: 28.92 MB / 0.9067 GB, free: 59.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/1.584, allocations: 4 kB / 0.9067 GB, free: 59.65 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05783/1.642, allocations: 20.24 MB / 0.9265 GB, free: 39.33 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001881/1.644, allocations: 0.5609 MB / 0.927 GB, free: 38.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001613/1.645, allocations: 67.47 kB / 0.9271 GB, free: 38.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004815/1.65, allocations: 379.5 kB / 0.9274 GB, free: 38.31 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00325/1.653, allocations: 0.7646 MB / 0.9282 GB, free: 37.55 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004112/1.654, allocations: 95.98 kB / 0.9283 GB, free: 37.45 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002953/1.657, allocations: 2.137 MB / 0.9304 GB, free: 35.31 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/1.657, allocations: 3.938 kB / 0.9304 GB, free: 35.31 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005933/1.663, allocations: 1.802 MB / 0.9321 GB, free: 33.5 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order3.delta,order3.w,order3.e1q,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (248): * Single equations (assignments): 245 * 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 {(100,36,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.0006442/1.663, allocations: 195.3 kB / 0.9323 GB, free: 33.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02285/1.686, allocations: 9.193 MB / 0.9413 GB, free: 24.07 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/1.686, allocations: 112 / 0.9413 GB, free: 24.07 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01812/1.704, allocations: 6.19 MB / 0.9473 GB, free: 17.83 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004614/1.709, allocations: 387.4 kB / 0.9477 GB, free: 17.45 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01559/1.725, allocations: 9.905 MB / 0.9574 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00152/1.726, allocations: 2.451 MB / 0.9598 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001689/1.728, allocations: 259.4 kB / 0.96 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of SimCode: time 1.032e-06/1.728, allocations: 4 kB / 0.96 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of Templates: time 0.3864/2.114, allocations: 88.49 MB / 1.046 GB, free: 165.2 MB / 0.5919 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe 2>&1)