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.00107/0.00107, allocations: 102.9 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.341/1.341, allocations: 222.9 MB / 240 MB, free: 4.547 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.001554/0.001554, allocations: 184.5 kB / 290.3 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.4985/0.4985, allocations: 91.9 MB / 432.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 80.11 kB / 0.5033 GB, free: 6.988 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3467, allocations: 71.26 MB / 0.5729 GB, free: 37.08 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.006014/0.3528, allocations: 6.209 MB / 0.5789 GB, free: 33.44 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003341/0.3561, allocations: 1.866 MB / 0.5808 GB, free: 32.12 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005914/0.3567, allocations: 9.125 kB / 0.5808 GB, free: 32.12 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005032/0.3573, allocations: 218.2 kB / 0.581 GB, free: 32 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001543/0.3588, allocations: 0.7627 MB / 0.5817 GB, free: 31.5 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.36, allocations: 0.583 MB / 0.5823 GB, free: 31.22 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001162/0.3612, allocations: 1.382 MB / 0.5836 GB, free: 30.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003773/0.3616, allocations: 291.4 kB / 0.5839 GB, free: 30.42 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005559/0.3621, allocations: 0.5785 MB / 0.5845 GB, free: 30.13 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006337/0.3628, allocations: 0.7508 MB / 0.5852 GB, free: 29.78 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001466/0.3629, allocations: 105.6 kB / 0.5853 GB, free: 29.78 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004578/0.3634, allocations: 249.8 kB / 0.5856 GB, free: 29.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001937/0.3636, allocations: 286.9 kB / 0.5858 GB, free: 29.54 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004123/0.364, allocations: 0.6068 MB / 0.5864 GB, free: 29.13 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001177/0.3652, allocations: 1.491 MB / 0.5879 GB, free: 28.46 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3652, allocations: 0 / 0.5879 GB, free: 28.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3652, allocations: 0 / 0.5879 GB, free: 28.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.187e-05/0.3653, allocations: 0 / 0.5879 GB, free: 28.46 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.007473/0.3727, allocations: 2.482 MB / 0.5903 GB, free: 27.31 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.3728, allocations: 16.95 kB / 0.5903 GB, free: 27.31 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004758/0.3776, allocations: 0.7613 MB / 0.5911 GB, free: 27.16 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00133/0.3789, allocations: 0.7937 MB / 0.5918 GB, free: 26.6 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002375/0.3792, allocations: 257.9 kB / 0.5921 GB, free: 26.38 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.3793, allocations: 77.34 kB / 0.5922 GB, free: 26.36 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002187/0.3815, allocations: 1.162 MB / 0.5933 GB, free: 25.89 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.3815, allocations: 7.938 kB / 0.5933 GB, free: 25.89 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.687e-05/0.3816, allocations: 25.78 kB / 0.5933 GB, free: 25.87 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.3817, allocations: 17.53 kB / 0.5933 GB, free: 25.87 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001822/0.3835, allocations: 0.9515 MB / 0.5943 GB, free: 25.56 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.005737/0.3892, allocations: 3.569 MB / 0.5978 GB, free: 23.39 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006793/0.396, allocations: 2.308 MB / 0.6 GB, free: 22.6 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/0.3974, allocations: 0.6504 MB / 0.6006 GB, free: 22.35 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001156/0.3976, allocations: 20.89 kB / 0.6007 GB, free: 22.34 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.3976, allocations: 39.67 kB / 0.6007 GB, free: 22.3 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.747e-06/0.3976, allocations: 5.219 kB / 0.6007 GB, free: 22.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02721/0.4248, allocations: 6.877 MB / 0.6074 GB, free: 20.98 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.425, allocations: 94.11 kB / 0.6075 GB, free: 20.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001686/0.4267, allocations: 0.9668 MB / 0.6085 GB, free: 20.47 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003335/0.427, allocations: 47.28 kB / 0.6085 GB, free: 20.42 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000369/0.4274, allocations: 459.2 kB / 0.6089 GB, free: 20.06 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003981/0.4278, allocations: 310.3 kB / 0.6092 GB, free: 19.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005424/0.4284, allocations: 256.3 kB / 0.6095 GB, free: 19.7 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.021e-05/0.4284, allocations: 302.6 kB / 0.6098 GB, free: 19.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.43, allocations: 0.6984 MB / 0.6104 GB, free: 19.15 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/0.4317, allocations: 0.9165 MB / 0.6113 GB, free: 18.66 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02075/0.4525, allocations: 5.054 MB / 0.6163 GB, free: 16.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-05/0.4525, allocations: 1.406 kB / 0.6163 GB, free: 16.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01132/0.4639, allocations: 4.137 MB / 0.6203 GB, free: 13.29 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.252e-05/0.4639, allocations: 10.19 kB / 0.6203 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.65e-05/0.4639, allocations: 7.938 kB / 0.6203 GB, free: 13.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00449/0.4684, allocations: 1.528 MB / 0.6218 GB, free: 11.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.4696, allocations: 255.6 kB / 0.6221 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01563/0.4852, allocations: 8.264 MB / 0.6301 GB, free: 3.07 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.487, allocations: 163 kB / 0.6303 GB, free: 2.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001337/0.4871, allocations: 59.97 kB / 0.6304 GB, free: 2.852 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.0005908/0.4877, allocations: 270.4 kB / 0.6306 GB, free: 2.578 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009195/0.4886, allocations: 332.9 kB / 0.6309 GB, free: 2.242 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01029/0.4989, allocations: 3.588 MB / 0.6344 GB, free: 14.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-05/0.499, allocations: 12 kB / 0.6344 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/0.499, allocations: 4 kB / 0.6345 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.399e-05/0.4991, allocations: 7.984 kB / 0.6345 GB, free: 14.61 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.01376/0.5128, allocations: 5.135 MB / 0.6395 GB, free: 9.379 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.748e-05/0.5129, allocations: 7.938 kB / 0.6395 GB, free: 9.371 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006464/0.5135, allocations: 107.8 kB / 0.6396 GB, free: 9.266 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005217/0.5188, allocations: 1.582 MB / 0.6411 GB, free: 7.676 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001651/0.519, allocations: 16 kB / 0.6411 GB, free: 7.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01877/0.5377, allocations: 10.76 MB / 0.6517 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.5378, allocations: 0 / 0.6517 GB, free: 12.54 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0137/0.5515, allocations: 4.608 MB / 0.6562 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006705/0.5522, allocations: 211.5 kB / 0.6564 GB, free: 7.684 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001758/0.5524, allocations: 16 kB / 0.6564 GB, free: 7.668 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.5534, allocations: 87.91 kB / 0.6565 GB, free: 7.582 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005254/0.554, allocations: 172.8 kB / 0.6566 GB, free: 7.414 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.253e-05/0.554, allocations: 23.98 kB / 0.6566 GB, free: 7.391 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008129/0.5549, allocations: 0.6434 MB / 0.6573 GB, free: 6.738 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5549, allocations: 0 / 0.6573 GB, free: 6.738 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001336/0.5562, allocations: 439.6 kB / 0.6577 GB, free: 6.309 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.0002533/0.5565, allocations: 135.1 kB / 0.6578 GB, free: 6.164 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00554/0.562, allocations: 2.291 MB / 0.6601 GB, free: 3.859 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5621, allocations: 1.375 kB / 0.6601 GB, free: 3.859 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003756/0.5658, allocations: 1.321 MB / 0.6614 GB, free: 2.516 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.5674, allocations: 349 kB / 0.6617 GB, free: 2.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/0.5712, allocations: 2.05 MB / 0.6637 GB, free: 92 kB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006185/0.5718, allocations: 1.077 MB / 0.6647 GB, free: 14.98 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003712/0.5722, allocations: 103.3 kB / 0.6648 GB, free: 14.88 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002199/0.5724, allocations: 71.36 kB / 0.6649 GB, free: 14.81 MB / 478.1 MB Notification: Performance of SimCode: time 1.222e-06/0.5724, allocations: 0 / 0.6649 GB, free: 14.81 MB / 478.1 MB Notification: Performance of Templates: time 0.03316/0.6056, allocations: 21.43 MB / 0.6858 GB, free: 9.383 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 cvode -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)