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.001263/0.001263, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.429/1.429, allocations: 222.9 MB / 240.1 MB, free: 4.555 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.001502/0.001502, allocations: 188.5 kB / 290.4 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5466/0.5466, allocations: 91.9 MB / 432.4 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 82.22 kB / 0.5735 GB, free: 33.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1511, allocations: 71.28 MB / 0.6431 GB, free: 3.465 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII): time 0.02112/0.1723, allocations: 21.75 MB / 0.6644 GB, free: 13.63 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0147/0.1871, allocations: 4.845 MB / 0.6691 GB, free: 8.766 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005333/0.1924, allocations: 44 kB / 0.6691 GB, free: 8.723 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003602/0.1961, allocations: 0.875 MB / 0.67 GB, free: 7.84 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009089/0.2052, allocations: 2.041 MB / 0.672 GB, free: 5.789 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006346/0.2116, allocations: 2.051 MB / 0.674 GB, free: 3.77 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01142/0.223, allocations: 5.705 MB / 0.6796 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003268/0.2263, allocations: 1.329 MB / 0.6808 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005029/0.2313, allocations: 2.318 MB / 0.6831 GB, free: 10.33 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004949/0.2363, allocations: 2.939 MB / 0.686 GB, free: 7.379 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001932/0.2383, allocations: 440 kB / 0.6864 GB, free: 6.949 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002664/0.2409, allocations: 0.578 MB / 0.687 GB, free: 6.371 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00202/0.243, allocations: 1.155 MB / 0.6881 GB, free: 5.211 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004571/0.2475, allocations: 2.606 MB / 0.6906 GB, free: 2.59 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006757/0.2543, allocations: 6.212 MB / 0.6967 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.2543, allocations: 0 / 0.6967 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.823e-06/0.2544, allocations: 0 / 0.6967 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001589/0.2545, allocations: 4 kB / 0.6967 GB, free: 12.35 MB / 0.4981 GB 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.03075/0.2853, allocations: 9.147 MB / 0.7056 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.2853, allocations: 8.031 kB / 0.7056 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02599/0.3113, allocations: 4.013 MB / 0.7096 GB, free: 15.08 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006226/0.3176, allocations: 2.658 MB / 0.7122 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009356/0.3186, allocations: 0.9534 MB / 0.7131 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006426/0.3192, allocations: 347.9 kB / 0.7134 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009301/0.3285, allocations: 4.727 MB / 0.718 GB, free: 6.152 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.878e-05/0.3286, allocations: 3.938 kB / 0.718 GB, free: 6.148 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003811/0.329, allocations: 140 kB / 0.7182 GB, free: 6.012 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-05/0.3291, allocations: 84 kB / 0.7183 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007981/0.3371, allocations: 4.244 MB / 0.7224 GB, free: 1.68 MB / 0.5137 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 preOpt removeSimpleEquations (simulation): time 0.03112/0.3682, allocations: 18.18 MB / 0.7402 GB, free: 14.32 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01179/0.38, allocations: 4.996 MB / 0.745 GB, free: 9.227 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005134/0.3852, allocations: 2.779 MB / 0.7478 GB, free: 6.438 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003574/0.3855, allocations: 74.84 kB / 0.7478 GB, free: 6.363 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006066/0.3916, allocations: 3.169 MB / 0.7509 GB, free: 3.152 MB / 0.545 GB Notification: Performance of pre-optimization done (n=382): time 5.39e-06/0.3916, allocations: 0 / 0.7509 GB, free: 3.152 MB / 0.545 GB Notification: Performance of matching and sorting (n=382): time 0.6314/1.023, allocations: 68.2 MB / 0.8175 GB, free: 83.59 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.568e-05/1.023, allocations: 145.8 kB / 0.8177 GB, free: 83.42 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004192/1.027, allocations: 3.224 MB / 0.8208 GB, free: 81.05 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009835/1.028, allocations: 88.02 kB / 0.8209 GB, free: 81.01 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001152/1.03, allocations: 1.969 MB / 0.8228 GB, free: 79.68 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.00134/1.031, allocations: 1.317 MB / 0.8241 GB, free: 78.38 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001176/1.032, allocations: 0.6742 MB / 0.8248 GB, free: 77.69 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.301e-05/1.032, allocations: 301.1 kB / 0.825 GB, free: 77.39 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004629/1.037, allocations: 2.577 MB / 0.8276 GB, free: 74.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004896/1.042, allocations: 3.201 MB / 0.8307 GB, free: 71.38 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06447/1.106, allocations: 18.75 MB / 0.849 GB, free: 52.37 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.201e-05/1.106, allocations: 4 kB / 0.849 GB, free: 52.37 MB / 0.5606 GB Notification: Performance of matching and sorting (n=534) (initialization): time 0.04979/1.156, allocations: 16.94 MB / 0.8655 GB, free: 35.39 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.23e-05/1.156, allocations: 63.41 kB / 0.8656 GB, free: 35.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.402e-05/1.156, allocations: 16 kB / 0.8656 GB, free: 35.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02401/1.18, allocations: 7.229 MB / 0.8727 GB, free: 28.06 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00333/1.184, allocations: 0.6592 MB / 0.8733 GB, free: 27.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07685/1.26, allocations: 33.71 MB / 0.9062 GB, free: 9.547 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00637/1.267, allocations: 0.6211 MB / 0.9069 GB, free: 8.922 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007251/1.268, allocations: 148 kB / 0.907 GB, free: 8.777 MB / 0.5762 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.001882/1.27, allocations: 0.6722 MB / 0.9076 GB, free: 8.094 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/1.271, allocations: 454.4 kB / 0.9081 GB, free: 7.645 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0544/1.325, allocations: 16.84 MB / 0.9245 GB, free: 6.734 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.132e-05/1.325, allocations: 36 kB / 0.9246 GB, free: 6.699 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-05/1.325, allocations: 28 kB / 0.9246 GB, free: 6.672 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001002/1.325, allocations: 15.94 kB / 0.9246 GB, free: 6.656 MB / 0.5919 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.06264/1.388, allocations: 21.83 MB / 0.9459 GB, free: 0.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.8e-05/1.388, allocations: 0 / 0.9459 GB, free: 0.75 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002491/1.391, allocations: 391.5 kB / 0.9463 GB, free: 376 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0265/1.417, allocations: 7.367 MB / 0.9535 GB, free: 8.984 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001108/1.418, allocations: 71.98 kB / 0.9536 GB, free: 8.914 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07893/1.497, allocations: 31.81 MB / 0.9846 GB, free: 8.809 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/1.497, allocations: 0 / 0.9846 GB, free: 8.809 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06295/1.56, allocations: 20.21 MB / 1.004 GB, free: 4.523 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001667/1.562, allocations: 0.5455 MB / 1.005 GB, free: 3.953 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008047/1.563, allocations: 64 kB / 1.005 GB, free: 3.891 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003988/1.567, allocations: 379.5 kB / 1.005 GB, free: 3.52 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003091/1.57, allocations: 0.7885 MB / 1.006 GB, free: 2.73 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002898/1.57, allocations: 95.98 kB / 1.006 GB, free: 2.637 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.00289/1.573, allocations: 2.113 MB / 1.008 GB, free: 0.5195 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.8e-07/1.573, allocations: 0 / 1.008 GB, free: 0.5195 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.005435/1.578, allocations: 1.8 MB / 1.01 GB, free: 14.71 MB / 0.6856 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.0005658/1.579, allocations: 198.9 kB / 1.01 GB, free: 14.52 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.02625/1.605, allocations: 9.273 MB / 1.019 GB, free: 5.199 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/1.605, allocations: 4 kB / 1.019 GB, free: 5.195 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.02174/1.627, allocations: 6.164 MB / 1.025 GB, free: 14.98 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004794/1.632, allocations: 389.2 kB / 1.026 GB, free: 14.6 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01833/1.65, allocations: 7.86 MB / 1.033 GB, free: 6.715 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001957/1.652, allocations: 2.447 MB / 1.036 GB, free: 4.23 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001417/1.654, allocations: 275.4 kB / 1.036 GB, free: 3.961 MB / 0.7012 GB Notification: Performance of SimCode: time 7.11e-07/1.654, allocations: 0 / 1.036 GB, free: 3.961 MB / 0.7012 GB Notification: Performance of Templates: time 0.4042/2.058, allocations: 88.44 MB / 1.122 GB, free: 179.9 MB / 0.7012 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)