Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001658/0.001658, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.282/1.282, allocations: 222.9 MB / 238.9 MB, free: 4.766 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.001155/0.001155, allocations: 192.5 kB / 289.1 MB, free: 2.516 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4502/0.4502, allocations: 78.51 MB / 417.8 MB, free: 3.359 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 83.86 kB / 496.8 MB, free: 6.855 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1337, allocations: 68.17 MB / 0.5517 GB, free: 2.645 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.2103/0.344, allocations: 6.87 MB / 0.5584 GB, free: 35.86 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00276/0.3468, allocations: 1.999 MB / 0.5604 GB, free: 35.32 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003854/0.3472, allocations: 11.94 kB / 0.5604 GB, free: 35.32 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005724/0.3478, allocations: 193 kB / 0.5605 GB, free: 35.3 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001286/0.3491, allocations: 0.7086 MB / 0.5612 GB, free: 35.16 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.0009189/0.35, allocations: 0.5812 MB / 0.5618 GB, free: 35.08 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009383/0.351, allocations: 1.502 MB / 0.5633 GB, free: 35 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003527/0.3513, allocations: 285.7 kB / 0.5635 GB, free: 34.95 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005993/0.3519, allocations: 0.5945 MB / 0.5641 GB, free: 34.81 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006246/0.3526, allocations: 0.7801 MB / 0.5649 GB, free: 34.61 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.3527, allocations: 72.28 kB / 0.565 GB, free: 34.61 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003965/0.3531, allocations: 207.3 kB / 0.5652 GB, free: 34.6 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002057/0.3533, allocations: 280.6 kB / 0.5654 GB, free: 34.53 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003861/0.3537, allocations: 0.624 MB / 0.566 GB, free: 34.29 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009586/0.3547, allocations: 1.59 MB / 0.5676 GB, free: 33.92 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.3547, allocations: 2.719 kB / 0.5676 GB, free: 33.92 MB / 430.1 MB Notification: Performance of FrontEnd: time 7.41e-07/0.3547, allocations: 0.6562 kB / 0.5676 GB, free: 33.92 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.3547, allocations: 1.062 kB / 0.5676 GB, free: 33.92 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007836/0.3626, allocations: 2.686 MB / 0.5702 GB, free: 32.94 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.3626, allocations: 8.5 kB / 0.5702 GB, free: 32.94 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004682/0.3673, allocations: 0.7788 MB / 0.571 GB, free: 32.85 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.3685, allocations: 0.8784 MB / 0.5718 GB, free: 32.44 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002018/0.3687, allocations: 262.2 kB / 0.5721 GB, free: 32.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.3689, allocations: 87.88 kB / 0.5722 GB, free: 32.24 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001772/0.3707, allocations: 1.095 MB / 0.5732 GB, free: 32.16 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.3707, allocations: 0 / 0.5732 GB, free: 32.16 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.64e-05/0.3708, allocations: 30.94 kB / 0.5733 GB, free: 32.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.3708, allocations: 16.5 kB / 0.5733 GB, free: 32.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001727/0.3725, allocations: 0.988 MB / 0.5743 GB, free: 32.14 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 preOpt removeSimpleEquations (simulation): time 0.005068/0.3776, allocations: 3.825 MB / 0.578 GB, free: 30.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006454/0.3841, allocations: 2.37 MB / 0.5803 GB, free: 29.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001149/0.3852, allocations: 0.6801 MB / 0.581 GB, free: 29.64 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.811e-05/0.3853, allocations: 15.45 kB / 0.581 GB, free: 29.63 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001469/0.3868, allocations: 0.8175 MB / 0.5818 GB, free: 29.32 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.344e-06/0.3868, allocations: 0 / 0.5818 GB, free: 29.32 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.0264/0.4132, allocations: 7.078 MB / 0.5887 GB, free: 27.93 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.4133, allocations: 117.6 kB / 0.5888 GB, free: 27.8 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001583/0.4149, allocations: 1.085 MB / 0.5899 GB, free: 27.36 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001939/0.4151, allocations: 48.75 kB / 0.5899 GB, free: 27.31 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002993/0.4154, allocations: 494 kB / 0.5904 GB, free: 26.92 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002966/0.4157, allocations: 360.3 kB / 0.5907 GB, free: 26.64 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004609/0.4162, allocations: 287.9 kB / 0.591 GB, free: 26.51 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.308e-05/0.4162, allocations: 301.1 kB / 0.5913 GB, free: 26.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00151/0.4178, allocations: 0.7649 MB / 0.592 GB, free: 25.93 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001667/0.4194, allocations: 0.9388 MB / 0.593 GB, free: 25.49 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0218/0.4412, allocations: 5.581 MB / 0.5984 GB, free: 23.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/0.4413, allocations: 1.062 kB / 0.5984 GB, free: 23.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01239/0.4537, allocations: 4.331 MB / 0.6026 GB, free: 22.58 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.076e-05/0.4537, allocations: 67.44 kB / 0.6027 GB, free: 22.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.4538, allocations: 4.859 kB / 0.6027 GB, free: 22.51 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005025/0.4588, allocations: 1.501 MB / 0.6042 GB, free: 22.24 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001379/0.4602, allocations: 297.6 kB / 0.6045 GB, free: 22.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01612/0.4763, allocations: 7.631 MB / 0.6119 GB, free: 17.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001947/0.4783, allocations: 204.8 kB / 0.6121 GB, free: 17.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.4784, allocations: 51.98 kB / 0.6121 GB, free: 17.27 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.0005371/0.479, allocations: 298.9 kB / 0.6124 GB, free: 16.96 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.4792, allocations: 135.4 kB / 0.6126 GB, free: 16.83 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/0.49, allocations: 3.865 MB / 0.6163 GB, free: 12.94 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.227e-06/0.4901, allocations: 13.69 kB / 0.6163 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.4901, allocations: 7.938 kB / 0.6164 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.23e-05/0.4901, allocations: 11.97 kB / 0.6164 GB, free: 12.91 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.01226/0.5024, allocations: 5.457 MB / 0.6217 GB, free: 7.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.5024, allocations: 0 / 0.6217 GB, free: 7.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005015/0.5029, allocations: 100.5 kB / 0.6218 GB, free: 7.242 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004714/0.5076, allocations: 1.612 MB / 0.6234 GB, free: 5.625 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-05/0.5077, allocations: 23.98 kB / 0.6234 GB, free: 5.602 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01604/0.5238, allocations: 8.757 MB / 0.6319 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5238, allocations: 0 / 0.6319 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01359/0.5374, allocations: 4.733 MB / 0.6366 GB, free: 7.801 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000442/0.5379, allocations: 219.2 kB / 0.6368 GB, free: 7.566 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001776/0.5381, allocations: 19.98 kB / 0.6368 GB, free: 7.547 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.5392, allocations: 111.9 kB / 0.6369 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006001/0.5398, allocations: 190.5 kB / 0.6371 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.592e-05/0.5399, allocations: 25.06 kB / 0.6371 GB, free: 7.227 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001036/0.5409, allocations: 0.737 MB / 0.6378 GB, free: 6.484 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5409, allocations: 0 / 0.6378 GB, free: 6.484 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001313/0.5422, allocations: 475.4 kB / 0.6383 GB, free: 6.02 MB / 446.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.000255/0.5425, allocations: 139.2 kB / 0.6384 GB, free: 5.871 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005682/0.5482, allocations: 2.506 MB / 0.6409 GB, free: 3.328 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.5482, allocations: 0 / 0.6409 GB, free: 3.328 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003949/0.5522, allocations: 1.602 MB / 0.6424 GB, free: 1.695 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008374/0.553, allocations: 115.7 kB / 0.6425 GB, free: 1.586 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003605/0.5566, allocations: 2.697 MB / 0.6452 GB, free: 14.89 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005512/0.5572, allocations: 1.12 MB / 0.6463 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0003923/0.5576, allocations: 120.5 kB / 0.6464 GB, free: 13.63 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.5578, allocations: 75.42 kB / 0.6464 GB, free: 13.55 MB / 462.1 MB Notification: Performance of SimCode: time 7.12e-07/0.5578, allocations: 0 / 0.6464 GB, free: 13.55 MB / 462.1 MB Notification: Performance of Templates: time 0.02819/0.586, allocations: 21.45 MB / 0.6674 GB, free: 8.336 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)