Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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_dev_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.001398/0.001399, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.376/1.376, allocations: 222.9 MB / 240.1 MB, free: 4.379 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.00152/0.00152, allocations: 184.5 kB / 290.4 MB, free: 2.109 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5418/0.5418, allocations: 91.89 MB / 432.4 MB, free: 9.203 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 76.25 kB / 0.5734 GB, free: 33.68 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1438, allocations: 71.28 MB / 0.643 GB, free: 3.684 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.007512/0.1514, allocations: 6.216 MB / 0.6491 GB, free: 13.44 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004398/0.1558, allocations: 1.857 MB / 0.6509 GB, free: 11.58 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001177/0.157, allocations: 8 kB / 0.6509 GB, free: 11.57 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006401/0.1577, allocations: 214.1 kB / 0.6511 GB, free: 11.36 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002235/0.16, allocations: 0.7688 MB / 0.6519 GB, free: 10.59 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.1614, allocations: 0.5875 MB / 0.6524 GB, free: 10.01 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001856/0.1633, allocations: 1.378 MB / 0.6538 GB, free: 8.625 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005152/0.1638, allocations: 283.9 kB / 0.6541 GB, free: 8.332 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001001/0.1648, allocations: 0.5873 MB / 0.6546 GB, free: 7.742 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001119/0.1659, allocations: 0.7506 MB / 0.6554 GB, free: 6.988 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002224/0.1662, allocations: 104 kB / 0.6555 GB, free: 6.887 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005812/0.1668, allocations: 243.9 kB / 0.6557 GB, free: 6.648 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000233/0.167, allocations: 298.7 kB / 0.656 GB, free: 6.355 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005149/0.1675, allocations: 0.6136 MB / 0.6566 GB, free: 5.738 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001553/0.1691, allocations: 1.487 MB / 0.658 GB, free: 4.246 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1691, allocations: 0 / 0.658 GB, free: 4.246 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1691, allocations: 0 / 0.658 GB, free: 4.246 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.95e-05/0.1691, allocations: 0 / 0.658 GB, free: 4.246 MB / 462.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.008328/0.1775, allocations: 2.485 MB / 0.6605 GB, free: 1.707 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.1775, allocations: 12.03 kB / 0.6605 GB, free: 1.695 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005108/0.1827, allocations: 0.7672 MB / 0.6612 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001589/0.1843, allocations: 0.793 MB / 0.662 GB, free: 76 kB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003407/0.1846, allocations: 256.2 kB / 0.6622 GB, free: 15.79 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002328/0.1849, allocations: 76 kB / 0.6623 GB, free: 15.71 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002645/0.1875, allocations: 1.166 MB / 0.6634 GB, free: 14.52 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.228e-05/0.1876, allocations: 3.938 kB / 0.6635 GB, free: 14.52 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.609e-05/0.1877, allocations: 28 kB / 0.6635 GB, free: 14.49 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.789e-05/0.1877, allocations: 24 kB / 0.6635 GB, free: 14.47 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002038/0.1897, allocations: 0.9459 MB / 0.6644 GB, free: 13.52 MB / 478.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.006596/0.1964, allocations: 3.566 MB / 0.6679 GB, free: 9.766 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007547/0.2039, allocations: 2.297 MB / 0.6701 GB, free: 7.379 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001549/0.2055, allocations: 0.6556 MB / 0.6708 GB, free: 6.719 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001344/0.2057, allocations: 16.58 kB / 0.6708 GB, free: 6.703 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.2057, allocations: 47.16 kB / 0.6709 GB, free: 6.648 MB / 478.1 MB Notification: Performance of pre-optimization done (n=92): time 3.767e-06/0.2057, allocations: 0 / 0.6709 GB, free: 6.648 MB / 478.1 MB Notification: Performance of matching and sorting (n=92): time 0.0284/0.2341, allocations: 6.87 MB / 0.6776 GB, free: 15.72 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.2343, allocations: 97.7 kB / 0.6777 GB, free: 15.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001473/0.2358, allocations: 0.9695 MB / 0.6786 GB, free: 14.62 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002196/0.236, allocations: 41.7 kB / 0.6786 GB, free: 14.57 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003694/0.2364, allocations: 460.8 kB / 0.6791 GB, free: 14.11 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004256/0.2368, allocations: 315.6 kB / 0.6794 GB, free: 13.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005562/0.2374, allocations: 255.5 kB / 0.6796 GB, free: 13.55 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.904e-05/0.2375, allocations: 305.1 kB / 0.6799 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001506/0.239, allocations: 0.6949 MB / 0.6806 GB, free: 12.55 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001636/0.2406, allocations: 0.9224 MB / 0.6815 GB, free: 11.56 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02242/0.2631, allocations: 5.057 MB / 0.6864 GB, free: 6.422 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.697e-05/0.2631, allocations: 4 kB / 0.6864 GB, free: 6.418 MB / 494.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01409/0.2772, allocations: 4.133 MB / 0.6905 GB, free: 2.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.734e-05/0.2773, allocations: 8 kB / 0.6905 GB, free: 2.262 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.23e-05/0.2773, allocations: 8 kB / 0.6905 GB, free: 2.254 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005723/0.2831, allocations: 1.524 MB / 0.692 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.2844, allocations: 259.6 kB / 0.6922 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02027/0.3047, allocations: 8.256 MB / 0.7003 GB, free: 8.066 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/0.3065, allocations: 179 kB / 0.7005 GB, free: 7.891 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002451/0.3068, allocations: 55.97 kB / 0.7005 GB, free: 7.836 MB / 0.4981 GB 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.0007381/0.3075, allocations: 273.5 kB / 0.7008 GB, free: 7.562 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/0.3087, allocations: 328.9 kB / 0.7011 GB, free: 7.23 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01216/0.3208, allocations: 3.584 MB / 0.7046 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.911e-05/0.3209, allocations: 8 kB / 0.7046 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.977e-05/0.3209, allocations: 8 kB / 0.7046 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.788e-05/0.3209, allocations: 7.969 kB / 0.7046 GB, free: 3.605 MB / 0.4981 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.01564/0.3366, allocations: 5.135 MB / 0.7096 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/0.3367, allocations: 3.938 kB / 0.7096 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006714/0.3373, allocations: 115.8 kB / 0.7097 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005708/0.3431, allocations: 1.579 MB / 0.7113 GB, free: 12.66 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001757/0.3433, allocations: 19.98 kB / 0.7113 GB, free: 12.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02058/0.3639, allocations: 10.76 MB / 0.7218 GB, free: 1.535 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.3639, allocations: 0 / 0.7218 GB, free: 1.535 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01482/0.3787, allocations: 4.601 MB / 0.7263 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000501/0.3793, allocations: 207.5 kB / 0.7265 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003996/0.3797, allocations: 16 kB / 0.7265 GB, free: 12.67 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.381, allocations: 91.89 kB / 0.7266 GB, free: 12.58 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006173/0.3816, allocations: 172.8 kB / 0.7268 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001133/0.3817, allocations: 28 kB / 0.7268 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001072/0.3828, allocations: 0.6434 MB / 0.7274 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3828, allocations: 0 / 0.7274 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00174/0.3845, allocations: 443.5 kB / 0.7278 GB, free: 11.29 MB / 0.5294 GB 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.0003556/0.3849, allocations: 143 kB / 0.728 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006336/0.3913, allocations: 2.284 MB / 0.7302 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.3913, allocations: 0 / 0.7302 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00416/0.3955, allocations: 1.318 MB / 0.7315 GB, free: 7.512 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.3974, allocations: 349.8 kB / 0.7318 GB, free: 7.156 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004569/0.402, allocations: 2.079 MB / 0.7339 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007456/0.4027, allocations: 1.077 MB / 0.7349 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/0.4031, allocations: 83.36 kB / 0.735 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of SimCode: time 8.82e-07/0.4031, allocations: 0 / 0.735 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of Templates: time 0.03006/0.4332, allocations: 21.43 MB / 0.7559 GB, free: 14.37 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)