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.006316/0.006316, allocations: 100.6 kB / 15.73 MB, free: 6.039 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.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.001608/0.001608, allocations: 188.5 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5703/0.5703, allocations: 91.89 MB / 431.7 MB, free: 9.148 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 79.09 kB / 0.5727 GB, free: 33.64 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.151, allocations: 71.28 MB / 0.6424 GB, free: 3.559 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.007625/0.1587, allocations: 6.224 MB / 0.6484 GB, free: 13.31 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004402/0.1631, allocations: 1.857 MB / 0.6502 GB, free: 11.45 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.1644, allocations: 8 kB / 0.6503 GB, free: 11.44 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008757/0.1653, allocations: 218.1 kB / 0.6505 GB, free: 11.22 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002821/0.1681, allocations: 0.7999 MB / 0.6512 GB, free: 10.42 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001635/0.1698, allocations: 0.5842 MB / 0.6518 GB, free: 9.844 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002133/0.1719, allocations: 1.374 MB / 0.6532 GB, free: 8.465 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005878/0.1725, allocations: 283.9 kB / 0.6534 GB, free: 8.172 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001036/0.1736, allocations: 0.5834 MB / 0.654 GB, free: 7.586 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00111/0.1747, allocations: 0.7506 MB / 0.6547 GB, free: 6.832 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003331/0.1751, allocations: 108 kB / 0.6548 GB, free: 6.727 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006765/0.1757, allocations: 251.8 kB / 0.6551 GB, free: 6.48 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003651/0.1761, allocations: 294.8 kB / 0.6553 GB, free: 6.191 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008569/0.177, allocations: 0.6097 MB / 0.6559 GB, free: 5.578 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001868/0.1789, allocations: 1.491 MB / 0.6574 GB, free: 4.082 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1789, allocations: 0 / 0.6574 GB, free: 4.082 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1789, allocations: 0 / 0.6574 GB, free: 4.082 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.487e-05/0.1789, allocations: 3.938 kB / 0.6574 GB, free: 4.078 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.009178/0.1881, allocations: 2.487 MB / 0.6598 GB, free: 1.539 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.1882, allocations: 12.03 kB / 0.6598 GB, free: 1.527 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005477/0.1937, allocations: 0.7672 MB / 0.6606 GB, free: 0.7578 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002309/0.196, allocations: 0.8008 MB / 0.6614 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003852/0.1964, allocations: 252.2 kB / 0.6616 GB, free: 15.61 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002775/0.1967, allocations: 76 kB / 0.6617 GB, free: 15.54 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002826/0.1995, allocations: 1.17 MB / 0.6628 GB, free: 14.34 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.1996, allocations: 3.938 kB / 0.6628 GB, free: 14.34 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/0.1997, allocations: 32 kB / 0.6629 GB, free: 14.31 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.16e-05/0.1997, allocations: 20 kB / 0.6629 GB, free: 14.29 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002167/0.2019, allocations: 0.942 MB / 0.6638 GB, free: 13.35 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.007152/0.2091, allocations: 3.569 MB / 0.6673 GB, free: 9.59 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007774/0.2169, allocations: 2.297 MB / 0.6695 GB, free: 7.203 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001513/0.2184, allocations: 0.6556 MB / 0.6702 GB, free: 6.543 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001179/0.2185, allocations: 16.62 kB / 0.6702 GB, free: 6.527 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.023e-05/0.2186, allocations: 47.16 kB / 0.6702 GB, free: 6.473 MB / 478.1 MB Notification: Performance of pre-optimization done (n=92): time 2.815e-06/0.2186, allocations: 0 / 0.6702 GB, free: 6.473 MB / 478.1 MB Notification: Performance of matching and sorting (n=92): time 0.02985/0.2485, allocations: 6.87 MB / 0.6769 GB, free: 15.54 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.2486, allocations: 93.77 kB / 0.677 GB, free: 15.43 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001698/0.2503, allocations: 0.9656 MB / 0.678 GB, free: 14.45 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002133/0.2506, allocations: 45.7 kB / 0.678 GB, free: 14.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004437/0.251, allocations: 460.8 kB / 0.6785 GB, free: 13.94 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004663/0.2515, allocations: 315.6 kB / 0.6788 GB, free: 13.63 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006287/0.2521, allocations: 259.5 kB / 0.679 GB, free: 13.37 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.2523, allocations: 301.1 kB / 0.6793 GB, free: 13.07 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001631/0.2539, allocations: 0.6949 MB / 0.68 GB, free: 12.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001742/0.2556, allocations: 0.9185 MB / 0.6809 GB, free: 11.39 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02257/0.2782, allocations: 5.057 MB / 0.6858 GB, free: 6.254 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-05/0.2783, allocations: 4 kB / 0.6858 GB, free: 6.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01388/0.2922, allocations: 4.133 MB / 0.6898 GB, free: 2.102 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.2922, allocations: 8 kB / 0.6899 GB, free: 2.094 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/0.2923, allocations: 4 kB / 0.6899 GB, free: 2.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005786/0.2981, allocations: 1.524 MB / 0.6913 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.2994, allocations: 259.6 kB / 0.6916 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02048/0.3199, allocations: 8.26 MB / 0.6997 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/0.3218, allocations: 175 kB / 0.6998 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002809/0.3221, allocations: 55.97 kB / 0.6999 GB, free: 7.672 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.0008009/0.3229, allocations: 278.4 kB / 0.7001 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001174/0.3241, allocations: 333 kB / 0.7005 GB, free: 7.055 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01209/0.3362, allocations: 3.584 MB / 0.704 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.3362, allocations: 8 kB / 0.704 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.999e-05/0.3363, allocations: 8 kB / 0.704 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/0.3363, allocations: 7.922 kB / 0.704 GB, free: 3.43 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.01503/0.3513, allocations: 5.131 MB / 0.709 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/0.3514, allocations: 3.938 kB / 0.709 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006275/0.352, allocations: 115.8 kB / 0.7091 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005615/0.3576, allocations: 1.579 MB / 0.7107 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001212/0.3578, allocations: 16 kB / 0.7107 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02147/0.3793, allocations: 10.75 MB / 0.7212 GB, free: 1.371 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3793, allocations: 4 kB / 0.7212 GB, free: 1.367 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01496/0.3943, allocations: 4.602 MB / 0.7257 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005764/0.3949, allocations: 207.5 kB / 0.7259 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003713/0.3953, allocations: 16 kB / 0.7259 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.3965, allocations: 87.91 kB / 0.726 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006053/0.3971, allocations: 172.8 kB / 0.7261 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.3972, allocations: 36.02 kB / 0.7262 GB, free: 12.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001054/0.3983, allocations: 0.6395 MB / 0.7268 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3983, allocations: 0 / 0.7268 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001746/0.4, allocations: 443.5 kB / 0.7272 GB, free: 11.12 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.0003109/0.4004, allocations: 153.6 kB / 0.7274 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006168/0.4065, allocations: 2.276 MB / 0.7296 GB, free: 8.676 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.4066, allocations: 3.938 kB / 0.7296 GB, free: 8.672 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004115/0.4107, allocations: 1.318 MB / 0.7309 GB, free: 7.34 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001789/0.4125, allocations: 351 kB / 0.7312 GB, free: 6.98 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004309/0.4168, allocations: 2.053 MB / 0.7332 GB, free: 4.898 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007531/0.4176, allocations: 1.073 MB / 0.7343 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0004103/0.418, allocations: 103.3 kB / 0.7344 GB, free: 3.691 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002797/0.4183, allocations: 71.42 kB / 0.7344 GB, free: 3.621 MB / 0.5294 GB Notification: Performance of SimCode: time 9.32e-07/0.4183, allocations: 0 / 0.7344 GB, free: 3.621 MB / 0.5294 GB Notification: Performance of Templates: time 0.03551/0.4538, allocations: 21.64 MB / 0.7556 GB, free: 13.96 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)