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.001414/0.001414, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.434/1.434, allocations: 223.3 MB / 239.4 MB, free: 5.508 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.001284/0.001284, allocations: 180.5 kB / 290.6 MB, free: 2.18 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5489/0.5489, allocations: 91.91 MB / 433.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004325/0.0004324, allocations: 12.33 kB / 0.5048 GB, free: 7.27 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.4053, allocations: 72.47 MB / 0.5755 GB, free: 36.51 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005162/0.4105, allocations: 6.417 MB / 0.5818 GB, free: 32.25 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00357/0.4141, allocations: 2 MB / 0.5837 GB, free: 30.84 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006245/0.4148, allocations: 11.59 kB / 0.5838 GB, free: 30.84 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000606/0.4154, allocations: 189 kB / 0.5839 GB, free: 30.76 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001632/0.4171, allocations: 0.7185 MB / 0.5846 GB, free: 30.29 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001073/0.4181, allocations: 0.5791 MB / 0.5852 GB, free: 29.99 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001232/0.4194, allocations: 1.502 MB / 0.5867 GB, free: 29.27 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003881/0.4198, allocations: 288.9 kB / 0.5869 GB, free: 29.15 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005939/0.4204, allocations: 0.5657 MB / 0.5875 GB, free: 28.89 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007086/0.4211, allocations: 0.7447 MB / 0.5882 GB, free: 28.56 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.4212, allocations: 62 kB / 0.5883 GB, free: 28.56 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004039/0.4216, allocations: 184.9 kB / 0.5885 GB, free: 28.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002009/0.4218, allocations: 259.9 kB / 0.5887 GB, free: 28.38 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004299/0.4223, allocations: 0.6243 MB / 0.5893 GB, free: 27.95 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.4235, allocations: 1.558 MB / 0.5908 GB, free: 27.37 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4235, allocations: 0 / 0.5908 GB, free: 27.37 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4235, allocations: 1.094 kB / 0.5908 GB, free: 27.37 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.4235, allocations: 0 / 0.5908 GB, free: 27.37 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.008346/0.4319, allocations: 2.49 MB / 0.5933 GB, free: 26.25 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.4319, allocations: 9.625 kB / 0.5933 GB, free: 26.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005281/0.4372, allocations: 0.7768 MB / 0.594 GB, free: 26.1 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001862/0.4391, allocations: 0.8815 MB / 0.5949 GB, free: 25.5 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000324/0.4394, allocations: 273.5 kB / 0.5952 GB, free: 25.28 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002111/0.4397, allocations: 86.81 kB / 0.5952 GB, free: 25.25 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002628/0.4423, allocations: 1.151 MB / 0.5964 GB, free: 24.82 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.4423, allocations: 0 / 0.5964 GB, free: 24.82 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.931e-05/0.4424, allocations: 35.38 kB / 0.5964 GB, free: 24.79 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.124e-05/0.4425, allocations: 17.34 kB / 0.5964 GB, free: 24.79 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002228/0.4447, allocations: 1.048 MB / 0.5974 GB, free: 24.46 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.007603/0.4523, allocations: 3.935 MB / 0.6013 GB, free: 22.24 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008628/0.461, allocations: 2.912 MB / 0.6041 GB, free: 21.35 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002034/0.463, allocations: 0.7396 MB / 0.6048 GB, free: 21.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001158/0.4632, allocations: 17.69 kB / 0.6049 GB, free: 21.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002025/0.4652, allocations: 0.8794 MB / 0.6057 GB, free: 20.74 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.146e-06/0.4652, allocations: 0 / 0.6057 GB, free: 20.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03358/0.4988, allocations: 8.675 MB / 0.6142 GB, free: 19.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.338e-05/0.4989, allocations: 118.9 kB / 0.6143 GB, free: 19.03 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002045/0.501, allocations: 1.079 MB / 0.6154 GB, free: 18.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003376/0.5013, allocations: 55.44 kB / 0.6154 GB, free: 18.54 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003576/0.5017, allocations: 492.7 kB / 0.6159 GB, free: 18.15 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004126/0.5021, allocations: 356.8 kB / 0.6162 GB, free: 17.87 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/0.5023, allocations: 150.1 kB / 0.6164 GB, free: 17.8 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.19e-05/0.5024, allocations: 302.8 kB / 0.6167 GB, free: 17.5 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001826/0.5042, allocations: 0.8227 MB / 0.6175 GB, free: 17.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001925/0.5062, allocations: 1.004 MB / 0.6184 GB, free: 16.71 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02395/0.5301, allocations: 5.999 MB / 0.6243 GB, free: 11.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/0.5302, allocations: 0 / 0.6243 GB, free: 11.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01378/0.544, allocations: 5.172 MB / 0.6294 GB, free: 5.957 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.689e-05/0.5441, allocations: 63.41 kB / 0.6294 GB, free: 5.883 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.399e-05/0.5441, allocations: 4 kB / 0.6294 GB, free: 5.879 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005459/0.5495, allocations: 1.794 MB / 0.6312 GB, free: 4.082 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/0.5511, allocations: 299.6 kB / 0.6315 GB, free: 3.789 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01917/0.5703, allocations: 8.613 MB / 0.6399 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002726/0.5731, allocations: 234.8 kB / 0.6401 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001366/0.5732, allocations: 55.97 kB / 0.6401 GB, free: 10.74 MB / 446.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.0008568/0.5741, allocations: 309.8 kB / 0.6404 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002764/0.5744, allocations: 130.4 kB / 0.6406 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01431/0.5887, allocations: 4.709 MB / 0.6452 GB, free: 5.555 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/0.5888, allocations: 12 kB / 0.6452 GB, free: 5.543 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/0.5888, allocations: 11.94 kB / 0.6452 GB, free: 5.531 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-05/0.5888, allocations: 3.984 kB / 0.6452 GB, free: 5.527 MB / 446.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.01689/0.6057, allocations: 6.309 MB / 0.6513 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/0.6058, allocations: 4.031 kB / 0.6514 GB, free: 15.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006921/0.6065, allocations: 103.8 kB / 0.6514 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006113/0.6126, allocations: 1.871 MB / 0.6533 GB, free: 13.12 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001984/0.6128, allocations: 20 kB / 0.6533 GB, free: 13.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02092/0.6337, allocations: 9.693 MB / 0.6628 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.6338, allocations: 0 / 0.6628 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01682/0.6506, allocations: 5.654 MB / 0.6683 GB, free: 13.44 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007447/0.6514, allocations: 219.4 kB / 0.6685 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/0.6516, allocations: 20 kB / 0.6685 GB, free: 13.19 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/0.6529, allocations: 147.9 kB / 0.6687 GB, free: 13.04 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006518/0.6536, allocations: 192.6 kB / 0.6688 GB, free: 12.85 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.296e-05/0.6536, allocations: 24 kB / 0.6689 GB, free: 12.83 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00117/0.6548, allocations: 0.7274 MB / 0.6696 GB, free: 12.09 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6548, allocations: 4 kB / 0.6696 GB, free: 12.09 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001707/0.6565, allocations: 479.4 kB / 0.67 GB, free: 11.62 MB / 478.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 {(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.0003726/0.6569, allocations: 136 kB / 0.6702 GB, free: 11.48 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007224/0.6642, allocations: 2.783 MB / 0.6729 GB, free: 8.66 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.842e-06/0.6642, allocations: 0 / 0.6729 GB, free: 8.66 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004837/0.669, allocations: 1.804 MB / 0.6746 GB, free: 6.816 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.6704, allocations: 112.5 kB / 0.6747 GB, free: 6.703 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004292/0.6747, allocations: 2.768 MB / 0.6775 GB, free: 3.91 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007476/0.6755, allocations: 1.116 MB / 0.6785 GB, free: 2.762 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000498/0.676, allocations: 124 kB / 0.6787 GB, free: 2.637 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002551/0.6762, allocations: 83.34 kB / 0.6787 GB, free: 2.555 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6762, allocations: 0 / 0.6787 GB, free: 2.555 MB / 478.1 MB Notification: Performance of Templates: time 0.03748/0.7137, allocations: 20.96 MB / 0.6992 GB, free: 13.62 MB / 0.4981 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)