Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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/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 Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+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 Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_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_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001735/0.001735, allocations: 182.8 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.1 MB / 221.8 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000937/0.000937, allocations: 102.3 kB / 269.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07704/0.07704, allocations: 12.59 MB / 329.1 MB, free: 12.4 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3076/0.3076, allocations: 78.51 MB / 457.8 MB, free: 13.71 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001741/0.00174, allocations: 111.1 kB / 0.5254 GB, free: 19.69 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.134, allocations: 68.13 MB / 0.592 GB, free: 15.64 MB / 394.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.009041/0.143, allocations: 6.91 MB / 0.5987 GB, free: 8.684 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.005087/0.1482, allocations: 1.975 MB / 0.6007 GB, free: 6.699 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001629/0.1499, allocations: 12 kB / 0.6007 GB, free: 6.688 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.1513, allocations: 182.8 kB / 0.6008 GB, free: 6.508 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003238/0.1546, allocations: 0.7279 MB / 0.6016 GB, free: 5.785 MB / 394.7 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.00193/0.1565, allocations: 0.5809 MB / 0.6021 GB, free: 5.207 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003425/0.1599, allocations: 1.514 MB / 0.6036 GB, free: 3.688 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007417/0.1607, allocations: 289.3 kB / 0.6039 GB, free: 3.395 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001384/0.1621, allocations: 0.6065 MB / 0.6045 GB, free: 2.785 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001567/0.1637, allocations: 0.7815 MB / 0.6052 GB, free: 2 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005219/0.1642, allocations: 72 kB / 0.6053 GB, free: 1.93 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009898/0.1652, allocations: 199.9 kB / 0.6055 GB, free: 1.734 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000599/0.1658, allocations: 278.6 kB / 0.6058 GB, free: 1.461 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001345/0.1672, allocations: 0.6211 MB / 0.6064 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002502/0.1697, allocations: 1.592 MB / 0.6079 GB, free: 15.24 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1697, allocations: 0 / 0.6079 GB, free: 15.24 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1697, allocations: 0 / 0.6079 GB, free: 15.24 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.311e-05/0.1698, allocations: 0 / 0.6079 GB, free: 15.24 MB / 410.7 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.01071/0.1805, allocations: 2.692 MB / 0.6105 GB, free: 12.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.871e-05/0.1806, allocations: 11.98 kB / 0.6106 GB, free: 12.47 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005372/0.186, allocations: 0.7709 MB / 0.6113 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002258/0.1883, allocations: 0.8863 MB / 0.6122 GB, free: 10.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003666/0.1887, allocations: 264.1 kB / 0.6124 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003437/0.189, allocations: 84 kB / 0.6125 GB, free: 10.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002942/0.192, allocations: 1.09 MB / 0.6136 GB, free: 9.273 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.129e-05/0.1921, allocations: 0 / 0.6136 GB, free: 9.273 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.1922, allocations: 35.98 kB / 0.6136 GB, free: 9.238 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.1922, allocations: 16 kB / 0.6136 GB, free: 9.223 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002574/0.1948, allocations: 0.9916 MB / 0.6146 GB, free: 8.23 MB / 410.7 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.008811/0.2036, allocations: 3.816 MB / 0.6183 GB, free: 4.238 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008407/0.2121, allocations: 2.372 MB / 0.6206 GB, free: 1.777 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00178/0.2139, allocations: 0.68 MB / 0.6213 GB, free: 1.094 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001743/0.2141, allocations: 16.98 kB / 0.6213 GB, free: 1.078 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002013/0.2161, allocations: 0.8177 MB / 0.6221 GB, free: 244 kB / 410.7 MB Notification: Performance of pre-optimization done (n=96): time 4.559e-06/0.2162, allocations: 3.938 kB / 0.6221 GB, free: 240 kB / 410.7 MB Notification: Performance of matching and sorting (n=96): time 0.03097/0.2471, allocations: 7.081 MB / 0.629 GB, free: 9.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.2473, allocations: 119.8 kB / 0.6291 GB, free: 8.949 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002018/0.2493, allocations: 1.079 MB / 0.6302 GB, free: 7.855 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000251/0.2496, allocations: 41.7 kB / 0.6302 GB, free: 7.809 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004232/0.25, allocations: 0.4891 MB / 0.6307 GB, free: 7.312 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005582/0.2506, allocations: 355 kB / 0.6311 GB, free: 6.961 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000787/0.2514, allocations: 287.4 kB / 0.6313 GB, free: 6.676 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.2515, allocations: 301.1 kB / 0.6316 GB, free: 6.379 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/0.2533, allocations: 0.7691 MB / 0.6324 GB, free: 5.609 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/0.2551, allocations: 0.9382 MB / 0.6333 GB, free: 4.629 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2974/0.5525, allocations: 5.573 MB / 0.6387 GB, free: 49.01 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.175e-05/0.5526, allocations: 1.625 kB / 0.6387 GB, free: 49.01 MB / 426.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01493/0.5675, allocations: 4.334 MB / 0.643 GB, free: 48.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.01e-05/0.5676, allocations: 63.39 kB / 0.643 GB, free: 48.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/0.5676, allocations: 2.719 kB / 0.643 GB, free: 48.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005865/0.5735, allocations: 1.512 MB / 0.6445 GB, free: 47.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/0.5751, allocations: 295 kB / 0.6448 GB, free: 47.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01874/0.5939, allocations: 7.622 MB / 0.6522 GB, free: 44.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001892/0.5958, allocations: 204.3 kB / 0.6524 GB, free: 44.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001438/0.596, allocations: 58.03 kB / 0.6525 GB, free: 44.36 MB / 426.7 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.0005482/0.5965, allocations: 302.2 kB / 0.6528 GB, free: 44.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/0.5967, allocations: 127.5 kB / 0.6529 GB, free: 44.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/0.6095, allocations: 3.87 MB / 0.6567 GB, free: 43.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.587e-05/0.6095, allocations: 11 kB / 0.6567 GB, free: 43.12 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.402e-05/0.6096, allocations: 10.81 kB / 0.6567 GB, free: 43.12 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.91e-05/0.6096, allocations: 11.55 kB / 0.6567 GB, free: 43.12 MB / 426.7 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.01492/0.6245, allocations: 5.455 MB / 0.662 GB, free: 40.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/0.6246, allocations: 0 / 0.662 GB, free: 40.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005755/0.6252, allocations: 102.6 kB / 0.6621 GB, free: 40.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005158/0.6303, allocations: 1.606 MB / 0.6637 GB, free: 40.03 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001575/0.6305, allocations: 31.55 kB / 0.6637 GB, free: 40 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0167/0.6472, allocations: 8.752 MB / 0.6723 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.6473, allocations: 0 / 0.6723 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08488/0.7322, allocations: 33.02 MB / 0.7045 GB, free: 15.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003477/0.7326, allocations: 227.2 kB / 0.7047 GB, free: 15.63 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001709/0.7327, allocations: 20 kB / 0.7047 GB, free: 15.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.7339, allocations: 112.3 kB / 0.7049 GB, free: 15.51 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006641/0.7346, allocations: 188.7 kB / 0.705 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.253e-05/0.7347, allocations: 31.98 kB / 0.7051 GB, free: 15.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001122/0.7358, allocations: 0.7312 MB / 0.7058 GB, free: 14.55 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7358, allocations: 0 / 0.7058 GB, free: 14.55 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002661/0.7385, allocations: 0.6508 MB / 0.7064 GB, free: 13.91 MB / 442.7 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.0003317/0.7388, allocations: 138.5 kB / 0.7065 GB, free: 13.76 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006579/0.7454, allocations: 2.503 MB / 0.709 GB, free: 11.22 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.7454, allocations: 0 / 0.709 GB, free: 11.22 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004507/0.75, allocations: 1.619 MB / 0.7106 GB, free: 9.559 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.7511, allocations: 108.6 kB / 0.7107 GB, free: 9.453 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008064/0.7592, allocations: 4.124 MB / 0.7147 GB, free: 5.266 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008146/0.76, allocations: 1.16 MB / 0.7158 GB, free: 4.074 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005897/0.7606, allocations: 128 kB / 0.716 GB, free: 3.945 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003/0.7609, allocations: 83.41 kB / 0.716 GB, free: 3.863 MB / 442.7 MB Notification: Performance of SimCode: time 5.71e-07/0.7609, allocations: 0 / 0.716 GB, free: 3.863 MB / 442.7 MB Notification: Performance of Templates: time 0.05172/0.8127, allocations: 31.66 MB / 0.747 GB, free: 4.273 MB / 474.7 MB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)