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.001481/0.001481, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.337/1.337, allocations: 222.9 MB / 240 MB, free: 4.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.00123/0.00123, allocations: 188.5 kB / 290.3 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5016/0.5016, allocations: 91.91 MB / 432.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 75.88 kB / 0.5033 GB, free: 6.93 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3386, allocations: 71.27 MB / 0.5729 GB, free: 37.64 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005292/0.344, allocations: 6.206 MB / 0.5789 GB, free: 33.65 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003175/0.3472, allocations: 1.872 MB / 0.5808 GB, free: 32.33 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005492/0.3477, allocations: 8.406 kB / 0.5808 GB, free: 32.33 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000458/0.3482, allocations: 216.3 kB / 0.581 GB, free: 32.21 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001511/0.3498, allocations: 0.7596 MB / 0.5817 GB, free: 31.71 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.3509, allocations: 0.5957 MB / 0.5823 GB, free: 31.42 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.3519, allocations: 1.374 MB / 0.5836 GB, free: 30.75 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003388/0.3523, allocations: 285.4 kB / 0.5839 GB, free: 30.64 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005141/0.3528, allocations: 0.5812 MB / 0.5845 GB, free: 30.35 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005838/0.3534, allocations: 0.7594 MB / 0.5852 GB, free: 29.98 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.3535, allocations: 105.6 kB / 0.5853 GB, free: 29.98 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003848/0.3539, allocations: 241.6 kB / 0.5856 GB, free: 29.95 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.3541, allocations: 283.2 kB / 0.5858 GB, free: 29.76 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003633/0.3545, allocations: 0.6186 MB / 0.5864 GB, free: 29.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001048/0.3555, allocations: 1.489 MB / 0.5879 GB, free: 28.67 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3556, allocations: 0 / 0.5879 GB, free: 28.67 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3556, allocations: 1.094 kB / 0.5879 GB, free: 28.67 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.3556, allocations: 0 / 0.5879 GB, free: 28.67 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.007402/0.363, allocations: 2.482 MB / 0.5903 GB, free: 27.52 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.363, allocations: 9.406 kB / 0.5903 GB, free: 27.52 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0049/0.3679, allocations: 0.7623 MB / 0.5911 GB, free: 27.37 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.3692, allocations: 0.7925 MB / 0.5918 GB, free: 26.81 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000227/0.3694, allocations: 261.3 kB / 0.5921 GB, free: 26.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001496/0.3696, allocations: 73.72 kB / 0.5922 GB, free: 26.57 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002131/0.3717, allocations: 1.171 MB / 0.5933 GB, free: 26.1 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.3717, allocations: 3.938 kB / 0.5933 GB, free: 26.1 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.884e-05/0.3718, allocations: 25.78 kB / 0.5933 GB, free: 26.08 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.3718, allocations: 16.69 kB / 0.5933 GB, free: 26.08 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001798/0.3736, allocations: 0.9521 MB / 0.5943 GB, free: 25.77 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.005411/0.3791, allocations: 3.563 MB / 0.5978 GB, free: 23.61 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00693/0.386, allocations: 2.301 MB / 0.6 GB, free: 22.82 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/0.3873, allocations: 0.6545 MB / 0.6006 GB, free: 22.57 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001122/0.3874, allocations: 21.22 kB / 0.6007 GB, free: 22.56 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.3875, allocations: 48.61 kB / 0.6007 GB, free: 22.51 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.827e-06/0.3875, allocations: 3.984 kB / 0.6007 GB, free: 22.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02745/0.4149, allocations: 6.876 MB / 0.6074 GB, free: 21.2 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.415, allocations: 98.38 kB / 0.6075 GB, free: 21.09 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001351/0.4164, allocations: 0.965 MB / 0.6085 GB, free: 20.68 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/0.4165, allocations: 45.89 kB / 0.6085 GB, free: 20.63 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00026/0.4168, allocations: 456.6 kB / 0.6089 GB, free: 20.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002643/0.4171, allocations: 313.4 kB / 0.6092 GB, free: 20.03 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004239/0.4175, allocations: 260 kB / 0.6095 GB, free: 19.91 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.854e-05/0.4175, allocations: 305.1 kB / 0.6098 GB, free: 19.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.4189, allocations: 0.6982 MB / 0.6105 GB, free: 19.35 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001461/0.4204, allocations: 0.9126 MB / 0.6114 GB, free: 18.87 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02021/0.4406, allocations: 5.062 MB / 0.6163 GB, free: 16.57 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.497e-05/0.4406, allocations: 2.281 kB / 0.6163 GB, free: 16.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01129/0.4519, allocations: 4.131 MB / 0.6203 GB, free: 13.4 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.452, allocations: 12 kB / 0.6203 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.452, allocations: 4 kB / 0.6203 GB, free: 13.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004644/0.4567, allocations: 1.513 MB / 0.6218 GB, free: 11.87 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001124/0.4578, allocations: 259.6 kB / 0.6221 GB, free: 11.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01609/0.4739, allocations: 8.268 MB / 0.6301 GB, free: 3.191 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/0.4755, allocations: 167 kB / 0.6303 GB, free: 3.027 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001803/0.4757, allocations: 59.97 kB / 0.6304 GB, free: 2.969 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.0006161/0.4763, allocations: 265.7 kB / 0.6306 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009702/0.4773, allocations: 336.9 kB / 0.6309 GB, free: 2.363 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01044/0.4878, allocations: 3.592 MB / 0.6344 GB, free: 14.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.4878, allocations: 12 kB / 0.6345 GB, free: 14.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.4878, allocations: 8 kB / 0.6345 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.4878, allocations: 7.969 kB / 0.6345 GB, free: 14.73 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.01359/0.5014, allocations: 5.127 MB / 0.6395 GB, free: 9.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.5015, allocations: 3.938 kB / 0.6395 GB, free: 9.496 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005611/0.502, allocations: 115.8 kB / 0.6396 GB, free: 9.383 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005224/0.5073, allocations: 1.571 MB / 0.6411 GB, free: 7.801 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.543e-05/0.5074, allocations: 23.98 kB / 0.6411 GB, free: 7.777 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01883/0.5262, allocations: 10.76 MB / 0.6517 GB, free: 12.67 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5262, allocations: 3.938 kB / 0.6517 GB, free: 12.66 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01363/0.5399, allocations: 4.601 MB / 0.6562 GB, free: 8.035 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004107/0.5403, allocations: 215.5 kB / 0.6564 GB, free: 7.805 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002086/0.5405, allocations: 16 kB / 0.6564 GB, free: 7.789 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.5415, allocations: 87.89 kB / 0.6565 GB, free: 7.703 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004922/0.542, allocations: 172.8 kB / 0.6566 GB, free: 7.535 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-05/0.5421, allocations: 24 kB / 0.6566 GB, free: 7.512 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008607/0.543, allocations: 0.6434 MB / 0.6573 GB, free: 6.859 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.543, allocations: 0 / 0.6573 GB, free: 6.859 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001318/0.5443, allocations: 439.6 kB / 0.6577 GB, free: 6.43 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.0002773/0.5446, allocations: 135 kB / 0.6578 GB, free: 6.285 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005624/0.5502, allocations: 2.293 MB / 0.6601 GB, free: 3.98 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.5503, allocations: 4.062 kB / 0.6601 GB, free: 3.977 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003645/0.5539, allocations: 1.329 MB / 0.6614 GB, free: 2.625 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.5552, allocations: 347.9 kB / 0.6617 GB, free: 2.273 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003708/0.5589, allocations: 2.035 MB / 0.6637 GB, free: 220 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006191/0.5596, allocations: 1.088 MB / 0.6647 GB, free: 15.1 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003269/0.5599, allocations: 99.33 kB / 0.6648 GB, free: 15 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002252/0.5601, allocations: 75.41 kB / 0.6649 GB, free: 14.92 MB / 478.1 MB Notification: Performance of SimCode: time 1.973e-06/0.5602, allocations: 0 / 0.6649 GB, free: 14.92 MB / 478.1 MB Notification: Performance of Templates: time 0.03269/0.5928, allocations: 21.43 MB / 0.6858 GB, free: 9.508 MB / 494.1 MB 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 -s gbode -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)