Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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_dev_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.008732/0.008732, allocations: 100.1 kB / 15.73 MB, free: 6.035 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.412/1.412, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.001226/0.001226, allocations: 184.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.545/0.545, allocations: 91.89 MB / 431.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 85.8 kB / 0.5727 GB, free: 33.71 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1628/0.1644, allocations: 71.28 MB / 0.6423 GB, free: 3.695 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.007275/0.1717, allocations: 6.584 MB / 0.6488 GB, free: 13.08 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00403/0.1758, allocations: 1.958 MB / 0.6507 GB, free: 11.12 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004734/0.1763, allocations: 8 kB / 0.6507 GB, free: 11.11 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007655/0.1771, allocations: 242 kB / 0.6509 GB, free: 10.87 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001907/0.179, allocations: 0.8529 MB / 0.6518 GB, free: 10.02 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001294/0.1803, allocations: 0.6323 MB / 0.6524 GB, free: 9.387 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001497/0.1818, allocations: 1.588 MB / 0.6539 GB, free: 7.793 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004695/0.1823, allocations: 330.4 kB / 0.6542 GB, free: 7.461 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006846/0.183, allocations: 0.6535 MB / 0.6549 GB, free: 6.805 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008607/0.1839, allocations: 0.8246 MB / 0.6557 GB, free: 5.977 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001646/0.184, allocations: 120 kB / 0.6558 GB, free: 5.859 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004612/0.1845, allocations: 259.8 kB / 0.656 GB, free: 5.605 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003052/0.1848, allocations: 326.6 kB / 0.6564 GB, free: 5.285 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005775/0.1854, allocations: 0.6758 MB / 0.657 GB, free: 4.605 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001497/0.1869, allocations: 1.658 MB / 0.6586 GB, free: 2.941 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.1869, allocations: 0 / 0.6586 GB, free: 2.941 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1869, allocations: 3.938 kB / 0.6586 GB, free: 2.938 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.187, allocations: 0 / 0.6586 GB, free: 2.938 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008463/0.1954, allocations: 2.688 MB / 0.6613 GB, free: 184 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.1955, allocations: 8.031 kB / 0.6613 GB, free: 176 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004956/0.2004, allocations: 0.7709 MB / 0.662 GB, free: 15.4 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.2019, allocations: 0.8786 MB / 0.6629 GB, free: 14.46 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002907/0.2022, allocations: 264.2 kB / 0.6631 GB, free: 14.17 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000163/0.2024, allocations: 91.89 kB / 0.6632 GB, free: 14.08 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/0.2045, allocations: 1.086 MB / 0.6643 GB, free: 12.98 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.2046, allocations: 0 / 0.6643 GB, free: 12.98 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.669e-05/0.2047, allocations: 32 kB / 0.6643 GB, free: 12.95 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.2047, allocations: 16 kB / 0.6643 GB, free: 12.93 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002029/0.2067, allocations: 0.9877 MB / 0.6653 GB, free: 11.95 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.006674/0.2134, allocations: 3.832 MB / 0.669 GB, free: 7.93 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007569/0.221, allocations: 2.369 MB / 0.6714 GB, free: 5.465 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/0.2224, allocations: 0.6762 MB / 0.672 GB, free: 4.785 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.192e-05/0.2225, allocations: 16.98 kB / 0.672 GB, free: 4.77 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001613/0.2241, allocations: 0.8196 MB / 0.6728 GB, free: 3.934 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 2.795e-06/0.2241, allocations: 4 kB / 0.6728 GB, free: 3.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.02988/0.254, allocations: 7.069 MB / 0.6797 GB, free: 12.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.736e-05/0.2541, allocations: 119.8 kB / 0.6799 GB, free: 12.66 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002086/0.2562, allocations: 1.083 MB / 0.6809 GB, free: 11.56 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001994/0.2565, allocations: 53.64 kB / 0.681 GB, free: 11.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004834/0.257, allocations: 496.8 kB / 0.6814 GB, free: 11.01 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004825/0.2574, allocations: 351.1 kB / 0.6818 GB, free: 10.66 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006005/0.2581, allocations: 287.4 kB / 0.682 GB, free: 10.38 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.2582, allocations: 301.1 kB / 0.6823 GB, free: 10.08 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/0.2598, allocations: 0.7691 MB / 0.6831 GB, free: 9.309 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001765/0.2616, allocations: 0.9381 MB / 0.684 GB, free: 8.332 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02363/0.2852, allocations: 5.579 MB / 0.6894 GB, free: 2.668 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/0.2853, allocations: 0 / 0.6894 GB, free: 2.668 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01482/0.3001, allocations: 4.328 MB / 0.6937 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.156e-05/0.3003, allocations: 63.41 kB / 0.6937 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/0.3003, allocations: 4 kB / 0.6937 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005738/0.306, allocations: 1.509 MB / 0.6952 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001717/0.3078, allocations: 295.6 kB / 0.6955 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02218/0.33, allocations: 8.273 MB / 0.7036 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002342/0.3324, allocations: 206.8 kB / 0.7038 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003658/0.3328, allocations: 59.97 kB / 0.7038 GB, free: 3.742 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: 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.001031/0.3338, allocations: 305.2 kB / 0.7041 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004649/0.3343, allocations: 130.3 kB / 0.7042 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01361/0.3479, allocations: 3.869 MB / 0.708 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.721e-05/0.3479, allocations: 12 kB / 0.708 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.5e-05/0.348, allocations: 8 kB / 0.708 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.126e-05/0.348, allocations: 3.984 kB / 0.708 GB, free: 15.39 MB / 0.5137 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.01611/0.3641, allocations: 5.459 MB / 0.7134 GB, free: 9.812 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/0.3642, allocations: 0 / 0.7134 GB, free: 9.812 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006786/0.3648, allocations: 107.8 kB / 0.7135 GB, free: 9.707 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005865/0.3707, allocations: 1.586 MB / 0.715 GB, free: 8.113 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001853/0.3709, allocations: 27.98 kB / 0.7151 GB, free: 8.086 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02191/0.3929, allocations: 9.622 MB / 0.7244 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.3929, allocations: 0 / 0.7244 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0153/0.4082, allocations: 4.738 MB / 0.7291 GB, free: 9.398 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006329/0.4089, allocations: 219.3 kB / 0.7293 GB, free: 9.164 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004055/0.4093, allocations: 20 kB / 0.7293 GB, free: 9.145 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/0.4107, allocations: 107.9 kB / 0.7294 GB, free: 9.039 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006909/0.4114, allocations: 192.7 kB / 0.7296 GB, free: 8.848 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.4115, allocations: 35.97 kB / 0.7296 GB, free: 8.812 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001451/0.413, allocations: 0.7235 MB / 0.7303 GB, free: 8.082 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.81e-07/0.413, allocations: 4.188 kB / 0.7303 GB, free: 8.078 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001909/0.4149, allocations: 475.5 kB / 0.7308 GB, free: 7.613 MB / 0.5294 GB 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 {(19,13,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000366/0.4153, allocations: 145.5 kB / 0.7309 GB, free: 7.465 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006754/0.4221, allocations: 2.505 MB / 0.7334 GB, free: 4.918 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.4221, allocations: 0 / 0.7334 GB, free: 4.918 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004548/0.4267, allocations: 1.583 MB / 0.7349 GB, free: 3.297 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.428, allocations: 124.5 kB / 0.735 GB, free: 3.172 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004811/0.4328, allocations: 2.232 MB / 0.7372 GB, free: 0.9141 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009083/0.4337, allocations: 1.124 MB / 0.7383 GB, free: 15.76 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005033/0.4343, allocations: 120.1 kB / 0.7384 GB, free: 15.64 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003175/0.4346, allocations: 79.41 kB / 0.7385 GB, free: 15.56 MB / 0.545 GB Notification: Performance of SimCode: time 8.82e-07/0.4346, allocations: 0 / 0.7385 GB, free: 15.56 MB / 0.545 GB Notification: Performance of Templates: time 0.04374/0.4783, allocations: 23.69 MB / 0.7616 GB, free: 7.875 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)