Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008892/0.000889, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.493/1.493, allocations: 223.3 MB / 239.4 MB, free: 5.512 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.001334/0.001334, allocations: 164.6 kB / 290.6 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5094/0.5094, allocations: 78.54 MB / 420.3 MB, free: 4.344 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004057/0.0004058, allocations: 12 kB / 0.4887 GB, free: 6.047 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1543, allocations: 69.36 MB / 0.5564 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2675/0.4218, allocations: 6.041 MB / 0.5623 GB, free: 36.39 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003774/0.4256, allocations: 1.894 MB / 0.5642 GB, free: 35.61 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007168/0.4264, allocations: 10.25 kB / 0.5642 GB, free: 35.61 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004683/0.4269, allocations: 158 kB / 0.5643 GB, free: 35.55 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001702/0.4286, allocations: 0.6626 MB / 0.565 GB, free: 35.26 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.001205/0.4298, allocations: 0.5415 MB / 0.5655 GB, free: 35.16 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001322/0.4311, allocations: 1.308 MB / 0.5668 GB, free: 34.84 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003778/0.4315, allocations: 254 kB / 0.567 GB, free: 34.8 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006523/0.4322, allocations: 0.5162 MB / 0.5675 GB, free: 34.64 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006714/0.4329, allocations: 0.6917 MB / 0.5682 GB, free: 34.43 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.433, allocations: 56.88 kB / 0.5682 GB, free: 34.43 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004475/0.4334, allocations: 184 kB / 0.5684 GB, free: 34.43 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001815/0.4336, allocations: 237.2 kB / 0.5686 GB, free: 34.35 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004217/0.4341, allocations: 0.5806 MB / 0.5692 GB, free: 34.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001176/0.4352, allocations: 1.404 MB / 0.5706 GB, free: 33.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4353, allocations: 2.312 kB / 0.5706 GB, free: 33.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4353, allocations: 1.156 kB / 0.5706 GB, free: 33.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.4353, allocations: 0 / 0.5706 GB, free: 33.73 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.007559/0.4429, allocations: 2.303 MB / 0.5728 GB, free: 32.89 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.4429, allocations: 8.656 kB / 0.5728 GB, free: 32.89 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004959/0.4479, allocations: 0.7731 MB / 0.5736 GB, free: 32.81 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/0.4493, allocations: 0.7986 MB / 0.5744 GB, free: 32.4 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002626/0.4495, allocations: 267.9 kB / 0.5746 GB, free: 32.21 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.4497, allocations: 83.94 kB / 0.5747 GB, free: 32.21 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002281/0.452, allocations: 1.243 MB / 0.5759 GB, free: 32.07 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.452, allocations: 3.938 kB / 0.5759 GB, free: 32.07 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.415e-05/0.4521, allocations: 29.25 kB / 0.576 GB, free: 32.07 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.4521, allocations: 16.84 kB / 0.576 GB, free: 32.07 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.454, allocations: 1.02 MB / 0.577 GB, free: 32.05 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.00628/0.4603, allocations: 3.622 MB / 0.5805 GB, free: 30.75 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00793/0.4683, allocations: 2.861 MB / 0.5833 GB, free: 30.2 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/0.4698, allocations: 0.7239 MB / 0.584 GB, free: 29.95 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.47, allocations: 18.47 kB / 0.584 GB, free: 29.95 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.47, allocations: 45.03 kB / 0.5841 GB, free: 29.9 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.607e-06/0.47, allocations: 0 / 0.5841 GB, free: 29.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.03128/0.5013, allocations: 8.258 MB / 0.5921 GB, free: 28.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.5015, allocations: 103.1 kB / 0.5922 GB, free: 28.31 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00201/0.5035, allocations: 0.9587 MB / 0.5932 GB, free: 27.9 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002474/0.5037, allocations: 45.89 kB / 0.5932 GB, free: 27.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003719/0.5041, allocations: 463.8 kB / 0.5937 GB, free: 27.49 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004545/0.5046, allocations: 308.8 kB / 0.594 GB, free: 27.25 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003178/0.5049, allocations: 133.4 kB / 0.5941 GB, free: 27.19 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.194e-05/0.505, allocations: 302.1 kB / 0.5944 GB, free: 26.89 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001748/0.5067, allocations: 0.7601 MB / 0.5951 GB, free: 26.62 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001923/0.5087, allocations: 0.9794 MB / 0.5961 GB, free: 26.13 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02401/0.5327, allocations: 5.5 MB / 0.6014 GB, free: 24.61 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.888e-05/0.5328, allocations: 2.344 kB / 0.6014 GB, free: 24.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.0165/0.5493, allocations: 4.973 MB / 0.6063 GB, free: 23.46 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.744e-05/0.5493, allocations: 8.594 kB / 0.6063 GB, free: 23.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/0.5494, allocations: 4.219 kB / 0.6063 GB, free: 23.46 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00627/0.5557, allocations: 1.793 MB / 0.6081 GB, free: 23.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.557, allocations: 264.9 kB / 0.6083 GB, free: 23.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0188/0.5758, allocations: 8.61 MB / 0.6167 GB, free: 15.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/0.5777, allocations: 210.9 kB / 0.6169 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/0.578, allocations: 55.97 kB / 0.617 GB, free: 15.4 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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.000742/0.5787, allocations: 264.4 kB / 0.6172 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001062/0.5798, allocations: 353.6 kB / 0.6176 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01233/0.5921, allocations: 4.43 MB / 0.6219 GB, free: 10.33 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.13e-05/0.5922, allocations: 16.75 kB / 0.6219 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.618e-05/0.5922, allocations: 8 kB / 0.6219 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.602e-05/0.5923, allocations: 7.969 kB / 0.6219 GB, free: 10.3 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.01477/0.607, allocations: 5.974 MB / 0.6278 GB, free: 4.223 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.544e-05/0.6071, allocations: 0 / 0.6278 GB, free: 4.223 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000637/0.6077, allocations: 112.5 kB / 0.6279 GB, free: 4.113 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005502/0.6133, allocations: 1.864 MB / 0.6297 GB, free: 2.242 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001647/0.6135, allocations: 27.94 kB / 0.6297 GB, free: 2.215 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02069/0.6342, allocations: 10.8 MB / 0.6403 GB, free: 7.078 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.6342, allocations: 0 / 0.6403 GB, free: 7.078 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01654/0.6508, allocations: 5.532 MB / 0.6457 GB, free: 1.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005795/0.6514, allocations: 220.2 kB / 0.6459 GB, free: 1.285 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003271/0.6517, allocations: 16.88 kB / 0.6459 GB, free: 1.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.653, allocations: 119.9 kB / 0.646 GB, free: 1.152 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005931/0.6536, allocations: 172.7 kB / 0.6462 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.387e-05/0.6537, allocations: 27.92 kB / 0.6462 GB, free: 0.957 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009785/0.6547, allocations: 0.6434 MB / 0.6468 GB, free: 312 kB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6547, allocations: 0 / 0.6468 GB, free: 312 kB / 446.1 MB Notification: Performance of remove unused functions: time 0.001723/0.6564, allocations: 435.6 kB / 0.6472 GB, free: 15.88 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003608/0.6568, allocations: 137.2 kB / 0.6474 GB, free: 15.74 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007104/0.6639, allocations: 2.56 MB / 0.6499 GB, free: 13.17 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.664, allocations: 320 / 0.6499 GB, free: 13.17 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004613/0.6686, allocations: 1.545 MB / 0.6514 GB, free: 11.61 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001998/0.6706, allocations: 360.1 kB / 0.6517 GB, free: 11.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004705/0.6754, allocations: 2.531 MB / 0.6542 GB, free: 8.734 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007342/0.6761, allocations: 1.081 MB / 0.6552 GB, free: 7.621 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004422/0.6766, allocations: 106.7 kB / 0.6553 GB, free: 7.516 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002584/0.6769, allocations: 67.42 kB / 0.6554 GB, free: 7.449 MB / 462.1 MB Notification: Performance of SimCode: time 8.61e-07/0.6769, allocations: 5.875 kB / 0.6554 GB, free: 7.445 MB / 462.1 MB Notification: Performance of Templates: time 0.03323/0.7101, allocations: 19.17 MB / 0.6741 GB, free: 4.469 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile Environment - environmentSimulation: (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1) Environment - environmentSimulation: