Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.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.TwoArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.374/1.374, allocations: 222.9 MB / 239.6 MB, free: 4.719 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.00152/0.00152, allocations: 196.4 kB / 289.9 MB, free: 2.457 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5408/0.5408, allocations: 91.9 MB / 432 MB, free: 9.395 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001759/0.001759, allocations: 75.89 kB / 0.502 GB, free: 8.051 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4072/0.409, allocations: 71.26 MB / 0.5716 GB, free: 36.45 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII): time 0.01526/0.4243, allocations: 23.3 MB / 0.5944 GB, free: 20.35 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01317/0.4376, allocations: 5.142 MB / 0.5994 GB, free: 16.61 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00683/0.4444, allocations: 48.97 kB / 0.5994 GB, free: 16.61 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003497/0.448, allocations: 0.6695 MB / 0.6001 GB, free: 16.35 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007735/0.4558, allocations: 1.729 MB / 0.6018 GB, free: 15.14 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004799/0.4606, allocations: 1.904 MB / 0.6036 GB, free: 14.05 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008219/0.4688, allocations: 5.667 MB / 0.6092 GB, free: 11.13 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002832/0.4717, allocations: 1.318 MB / 0.6105 GB, free: 10.5 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004533/0.4762, allocations: 2.338 MB / 0.6127 GB, free: 9.281 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00487/0.4811, allocations: 2.935 MB / 0.6156 GB, free: 7.793 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002032/0.4831, allocations: 436.8 kB / 0.616 GB, free: 7.793 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003244/0.4864, allocations: 0.5749 MB / 0.6166 GB, free: 7.754 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002267/0.4887, allocations: 1.152 MB / 0.6177 GB, free: 6.965 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006141/0.4948, allocations: 2.619 MB / 0.6203 GB, free: 5.211 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.505, allocations: 4.848 MB / 0.625 GB, free: 3.234 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.505, allocations: 0 / 0.625 GB, free: 3.234 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.505, allocations: 1.125 kB / 0.625 GB, free: 3.234 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003658/0.5054, allocations: 4 kB / 0.625 GB, free: 3.23 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: 892 * Number of variables: 892 Notification: Performance of Generate backend data structure: time 0.03714/0.5426, allocations: 9.167 MB / 0.634 GB, free: 14.82 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.5426, allocations: 8.031 kB / 0.634 GB, free: 14.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0267/0.5693, allocations: 4.005 MB / 0.6379 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007507/0.5769, allocations: 2.647 MB / 0.6405 GB, free: 8.074 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001122/0.578, allocations: 0.9612 MB / 0.6414 GB, free: 6.977 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001868/0.5799, allocations: 351.9 kB / 0.6417 GB, free: 6.633 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01146/0.5914, allocations: 4.719 MB / 0.6463 GB, free: 1.883 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.333e-05/0.5915, allocations: 3.938 kB / 0.6464 GB, free: 1.879 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004062/0.5919, allocations: 144 kB / 0.6465 GB, free: 1.738 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.117e-05/0.592, allocations: 84 kB / 0.6466 GB, free: 1.656 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008525/0.6005, allocations: 4.244 MB / 0.6507 GB, free: 13.4 MB / 462.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.03459/0.6351, allocations: 18.3 MB / 0.6686 GB, free: 9.926 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0127/0.6479, allocations: 5.004 MB / 0.6735 GB, free: 4.844 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006375/0.6543, allocations: 2.775 MB / 0.6762 GB, free: 2.059 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008183/0.6552, allocations: 70.86 kB / 0.6762 GB, free: 1.988 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008051/0.6632, allocations: 3.173 MB / 0.6793 GB, free: 14.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=382): time 8.777e-06/0.6633, allocations: 3.938 kB / 0.6794 GB, free: 14.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.2934/0.9567, allocations: 68.19 MB / 0.7459 GB, free: 10.38 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.9569, allocations: 153.8 kB / 0.7461 GB, free: 10.21 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006375/0.9632, allocations: 3.226 MB / 0.7492 GB, free: 6.961 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001254/0.9645, allocations: 89.7 kB / 0.7493 GB, free: 6.867 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00173/0.9663, allocations: 1.967 MB / 0.7512 GB, free: 4.887 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002603/0.9689, allocations: 1.309 MB / 0.7525 GB, free: 3.559 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003298/0.9722, allocations: 0.6703 MB / 0.7532 GB, free: 2.875 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001341/0.9723, allocations: 305.1 kB / 0.7535 GB, free: 2.574 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005741/0.9781, allocations: 2.581 MB / 0.756 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006013/0.9841, allocations: 3.205 MB / 0.7591 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3571/1.341, allocations: 18.82 MB / 0.7775 GB, free: 154 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.343e-05/1.341, allocations: 2.75 kB / 0.7775 GB, free: 154 MB / 0.5606 GB Notification: Performance of matching and sorting (n=534) (initialization): time 0.05696/1.398, allocations: 16.93 MB / 0.794 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.565e-05/1.398, allocations: 70.94 kB / 0.7941 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.163e-05/1.398, allocations: 15.03 kB / 0.7941 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02645/1.425, allocations: 7.239 MB / 0.8012 GB, free: 151.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003651/1.429, allocations: 0.6623 MB / 0.8018 GB, free: 151.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0792/1.508, allocations: 33.76 MB / 0.8348 GB, free: 133.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006695/1.515, allocations: 0.6199 MB / 0.8354 GB, free: 133.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009087/1.515, allocations: 148 kB / 0.8355 GB, free: 133.2 MB / 0.5606 GB Warning: Assuming fixed start value for the following 4 variables: order3_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.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: 65 * 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 (398): * Single equations (assignments): 395 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(92,45)} Notification: Performance of prepare postOptimizeDAE: time 0.002049/1.518, allocations: 0.6784 MB / 0.8362 GB, free: 132.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001256/1.519, allocations: 458.3 kB / 0.8366 GB, free: 132 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05074/1.57, allocations: 16.84 MB / 0.8531 GB, free: 115.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.121e-05/1.57, allocations: 36 kB / 0.8531 GB, free: 115.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.659e-05/1.57, allocations: 28 kB / 0.8531 GB, free: 115.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001094/1.57, allocations: 19.92 kB / 0.8532 GB, free: 115.1 MB / 0.5606 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.05758/1.627, allocations: 21.83 MB / 0.8745 GB, free: 93.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-05/1.627, allocations: 7.922 kB / 0.8745 GB, free: 93.18 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0025/1.63, allocations: 387.5 kB / 0.8749 GB, free: 92.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02354/1.654, allocations: 7.386 MB / 0.8821 GB, free: 85.4 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001066/1.655, allocations: 67.98 kB / 0.8821 GB, free: 85.33 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07577/1.73, allocations: 31.84 MB / 0.9132 GB, free: 53.19 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/1.73, allocations: 7.875 kB / 0.9132 GB, free: 53.18 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05796/1.788, allocations: 20.19 MB / 0.933 GB, free: 32.91 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001832/1.79, allocations: 0.557 MB / 0.9335 GB, free: 32.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002095/1.792, allocations: 64 kB / 0.9336 GB, free: 32.26 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00566/1.798, allocations: 375.6 kB / 0.9339 GB, free: 31.89 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00387/1.802, allocations: 0.7805 MB / 0.9347 GB, free: 31.11 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009977/1.803, allocations: 104 kB / 0.9348 GB, free: 31.01 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003674/1.807, allocations: 2.105 MB / 0.9368 GB, free: 28.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7.52e-07/1.807, allocations: 4 kB / 0.9368 GB, free: 28.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00879/1.816, allocations: 1.793 MB / 0.9386 GB, free: 27.11 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order3.delta,order3.w,order3.e1q,order3_1.delta,order3_1.w,order3_1.e1q,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 (246): * Single equations (assignments): 243 * 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 {(100,36,5.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.001374/1.817, allocations: 196.4 kB / 0.9388 GB, free: 26.91 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02996/1.847, allocations: 9.417 MB / 0.948 GB, free: 17.45 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/1.847, allocations: 0 / 0.948 GB, free: 17.45 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01831/1.865, allocations: 6.168 MB / 0.954 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0057/1.871, allocations: 389.8 kB / 0.9544 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01723/1.888, allocations: 9.754 MB / 0.9639 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002698/1.891, allocations: 2.435 MB / 0.9663 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001797/1.893, allocations: 279.4 kB / 0.9665 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of SimCode: time 1.122e-06/1.893, allocations: 0 / 0.9665 GB, free: 14.33 MB / 0.5762 GB Notification: Performance of Templates: time 0.3653/2.258, allocations: 88.05 MB / 1.053 GB, free: 157.1 MB / 0.5919 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe 2>&1)