Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_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.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 106.7 kB / 16.41 MB, free: 6.512 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.377/1.377, allocations: 222.9 MB / 240.1 MB, free: 4.371 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.001533/0.001533, allocations: 196.5 kB / 290.4 MB, free: 2.094 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5185/0.5185, allocations: 91.91 MB / 432.4 MB, free: 9.133 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 80.25 kB / 0.5735 GB, free: 33.56 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1437, allocations: 71.3 MB / 0.6431 GB, free: 3.43 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII): time 0.02051/0.1642, allocations: 21.93 MB / 0.6645 GB, free: 13.41 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.1785, allocations: 4.884 MB / 0.6693 GB, free: 8.508 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004839/0.1834, allocations: 47.94 kB / 0.6694 GB, free: 8.461 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003623/0.187, allocations: 0.875 MB / 0.6702 GB, free: 7.578 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009329/0.1964, allocations: 2.054 MB / 0.6722 GB, free: 5.512 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006921/0.2034, allocations: 2.059 MB / 0.6742 GB, free: 3.484 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.01269/0.2161, allocations: 5.764 MB / 0.6799 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003762/0.2199, allocations: 1.325 MB / 0.6812 GB, free: 12.32 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004356/0.2243, allocations: 2.341 MB / 0.6834 GB, free: 9.969 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004561/0.2288, allocations: 2.967 MB / 0.6863 GB, free: 6.988 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002221/0.2311, allocations: 444 kB / 0.6868 GB, free: 6.555 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002677/0.2338, allocations: 0.5936 MB / 0.6873 GB, free: 5.961 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001894/0.2357, allocations: 1.151 MB / 0.6885 GB, free: 4.805 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00487/0.2406, allocations: 2.629 MB / 0.691 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009738/0.2503, allocations: 6.262 MB / 0.6971 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.294e-06/0.2504, allocations: 0 / 0.6971 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.448e-06/0.2504, allocations: 0 / 0.6971 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0002886/0.2507, allocations: 7.938 kB / 0.6972 GB, free: 11.87 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: 894 * Number of variables: 894 Notification: Performance of Generate backend data structure: time 0.03412/0.2848, allocations: 9.217 MB / 0.7062 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.2849, allocations: 8.031 kB / 0.7062 GB, free: 2.547 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02771/0.3126, allocations: 4.012 MB / 0.7101 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009239/0.3219, allocations: 2.678 MB / 0.7127 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001237/0.3232, allocations: 0.9573 MB / 0.7136 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001699/0.3249, allocations: 348 kB / 0.714 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01471/0.3397, allocations: 4.747 MB / 0.7186 GB, free: 5.555 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001393/0.3398, allocations: 3.938 kB / 0.7186 GB, free: 5.551 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001137/0.341, allocations: 140 kB / 0.7187 GB, free: 5.414 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-05/0.3411, allocations: 87.98 kB / 0.7188 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01149/0.3526, allocations: 4.252 MB / 0.723 GB, free: 1.07 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.04074/0.3934, allocations: 18.25 MB / 0.7408 GB, free: 13.64 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01295/0.4064, allocations: 5.013 MB / 0.7457 GB, free: 8.535 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00622/0.4126, allocations: 2.79 MB / 0.7484 GB, free: 5.734 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007412/0.4134, allocations: 70.94 kB / 0.7485 GB, free: 5.664 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00793/0.4214, allocations: 3.182 MB / 0.7516 GB, free: 2.441 MB / 0.545 GB Notification: Performance of pre-optimization done (n=384): time 1.117e-05/0.4214, allocations: 3.938 kB / 0.7516 GB, free: 2.438 MB / 0.545 GB Notification: Performance of matching and sorting (n=384): time 0.6579/1.079, allocations: 67.77 MB / 0.8178 GB, free: 83.27 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/1.079, allocations: 141.8 kB / 0.8179 GB, free: 83.11 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003956/1.083, allocations: 3.255 MB / 0.8211 GB, free: 80.72 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009297/1.084, allocations: 92.08 kB / 0.8212 GB, free: 80.68 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001063/1.085, allocations: 1.978 MB / 0.8231 GB, free: 79.48 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001532/1.087, allocations: 1.329 MB / 0.8244 GB, free: 78.17 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001281/1.088, allocations: 0.6744 MB / 0.8251 GB, free: 77.48 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.706e-05/1.088, allocations: 305.1 kB / 0.8254 GB, free: 77.18 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004631/1.093, allocations: 2.605 MB / 0.8279 GB, free: 74.57 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005036/1.098, allocations: 3.226 MB / 0.8311 GB, free: 71.12 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06391/1.162, allocations: 19 MB / 0.8496 GB, free: 51.86 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.191e-05/1.162, allocations: 4 kB / 0.8496 GB, free: 51.86 MB / 0.5606 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.0501/1.212, allocations: 17.29 MB / 0.8665 GB, free: 34.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.301e-05/1.212, allocations: 63.41 kB / 0.8666 GB, free: 34.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.116e-05/1.212, allocations: 16 kB / 0.8666 GB, free: 34.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0232/1.235, allocations: 7.153 MB / 0.8736 GB, free: 27.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003489/1.239, allocations: 0.6865 MB / 0.8742 GB, free: 26.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07499/1.314, allocations: 33.3 MB / 0.9068 GB, free: 9.105 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006202/1.32, allocations: 0.6249 MB / 0.9074 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008391/1.321, allocations: 156 kB / 0.9075 GB, free: 8.328 MB / 0.5762 GB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (407): * Single equations (assignments): 404 * 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): 1 system {(92,44,5.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001958/1.323, allocations: 0.6686 MB / 0.9082 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/1.324, allocations: 466.2 kB / 0.9086 GB, free: 7.188 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05403/1.378, allocations: 16.86 MB / 0.9251 GB, free: 6.254 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.904e-05/1.378, allocations: 39.98 kB / 0.9251 GB, free: 6.215 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.15e-05/1.378, allocations: 31.94 kB / 0.9251 GB, free: 6.184 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001024/1.378, allocations: 19.94 kB / 0.9252 GB, free: 6.164 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.06172/1.44, allocations: 21.88 MB / 0.9465 GB, free: 212 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.436e-05/1.44, allocations: 0 / 0.9465 GB, free: 212 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002429/1.443, allocations: 395.5 kB / 0.9469 GB, free: 15.82 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02536/1.468, allocations: 7.374 MB / 0.9541 GB, free: 8.426 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001199/1.469, allocations: 75.92 kB / 0.9542 GB, free: 8.352 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07881/1.548, allocations: 31.77 MB / 0.9852 GB, free: 8.281 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/1.548, allocations: 8 kB / 0.9852 GB, free: 8.273 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0612/1.609, allocations: 20.25 MB / 1.005 GB, free: 3.941 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/1.611, allocations: 0.5571 MB / 1.006 GB, free: 3.359 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001466/1.613, allocations: 67.94 kB / 1.006 GB, free: 3.293 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004815/1.617, allocations: 375.5 kB / 1.006 GB, free: 2.926 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003501/1.621, allocations: 0.7904 MB / 1.007 GB, free: 2.137 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005707/1.622, allocations: 95.98 kB / 1.007 GB, free: 2.043 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.003311/1.625, allocations: 2.129 MB / 1.009 GB, free: 15.91 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.573e-06/1.625, allocations: 112 / 1.009 GB, free: 15.91 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.006672/1.632, allocations: 1.806 MB / 1.011 GB, free: 14.1 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order3.delta,order3.w,order3.e1q,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (248): * Single equations (assignments): 245 * 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.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008745/1.632, allocations: 201.6 kB / 1.011 GB, free: 13.89 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.02532/1.658, allocations: 9.188 MB / 1.02 GB, free: 4.66 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/1.658, allocations: 0.875 kB / 1.02 GB, free: 4.66 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.01985/1.678, allocations: 6.193 MB / 1.026 GB, free: 14.43 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003752/1.682, allocations: 386.2 kB / 1.026 GB, free: 14.05 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01714/1.699, allocations: 8.003 MB / 1.034 GB, free: 6.031 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00219/1.701, allocations: 2.455 MB / 1.036 GB, free: 3.539 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001692/1.703, allocations: 279.4 kB / 1.037 GB, free: 3.266 MB / 0.7012 GB Notification: Performance of SimCode: time 1.542e-06/1.703, allocations: 0 / 1.037 GB, free: 3.266 MB / 0.7012 GB Notification: Performance of Templates: time 0.4942/2.197, allocations: 88.89 MB / 1.124 GB, free: 179 MB / 0.7012 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe 2>&1)