Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008527/0.0008527, allocations: 99.42 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 223.3 MB / 240 MB, free: 5.543 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.001004/0.001004, allocations: 183.6 kB / 291.3 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.465/0.465, allocations: 78.55 MB / 420.9 MB, free: 4.281 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004/0.0004003, allocations: 8 kB / 0.4893 GB, free: 6.055 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.158, allocations: 69.36 MB / 0.557 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.282/0.4401, allocations: 13.8 MB / 0.5705 GB, free: 30.94 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008195/0.4484, allocations: 3.577 MB / 0.574 GB, free: 29.65 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003708/0.4521, allocations: 30.97 kB / 0.574 GB, free: 29.65 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001975/0.4541, allocations: 434.7 kB / 0.5744 GB, free: 29.5 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005507/0.4597, allocations: 1.215 MB / 0.5756 GB, free: 28.93 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.003543/0.4632, allocations: 1.417 MB / 0.577 GB, free: 28.74 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005286/0.4685, allocations: 3.512 MB / 0.5804 GB, free: 27.91 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001526/0.4701, allocations: 0.7912 MB / 0.5812 GB, free: 27.68 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002922/0.473, allocations: 1.326 MB / 0.5825 GB, free: 27.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002317/0.4753, allocations: 1.775 MB / 0.5842 GB, free: 26.72 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003595/0.4757, allocations: 143.5 kB / 0.5844 GB, free: 26.71 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009473/0.4767, allocations: 278.4 kB / 0.5846 GB, free: 26.69 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005153/0.4772, allocations: 0.612 MB / 0.5852 GB, free: 26.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001427/0.4786, allocations: 1.487 MB / 0.5867 GB, free: 25.34 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003012/0.4817, allocations: 2.942 MB / 0.5896 GB, free: 24.42 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.4817, allocations: 0 / 0.5896 GB, free: 24.42 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.4817, allocations: 0 / 0.5896 GB, free: 24.42 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001068/0.4818, allocations: 1.875 kB / 0.5896 GB, free: 24.42 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: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02194/0.5038, allocations: 6.119 MB / 0.5955 GB, free: 22.16 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.5038, allocations: 9 kB / 0.5956 GB, free: 22.16 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01503/0.5189, allocations: 2.295 MB / 0.5978 GB, free: 21.74 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004756/0.5237, allocations: 1.872 MB / 0.5996 GB, free: 20.58 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007563/0.5244, allocations: 0.7496 MB / 0.6004 GB, free: 19.93 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006161/0.5251, allocations: 220.5 kB / 0.6006 GB, free: 19.85 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007664/0.5327, allocations: 3.232 MB / 0.6037 GB, free: 18.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.424e-05/0.5328, allocations: 1.156 kB / 0.6037 GB, free: 18.68 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002569/0.5331, allocations: 91.19 kB / 0.6038 GB, free: 18.61 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.637e-05/0.5332, allocations: 52.12 kB / 0.6039 GB, free: 18.6 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007/0.5402, allocations: 2.984 MB / 0.6068 GB, free: 17.64 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.0222/0.5624, allocations: 10.14 MB / 0.6167 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01289/0.5753, allocations: 4.87 MB / 0.6214 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005283/0.5807, allocations: 2.164 MB / 0.6235 GB, free: 9.039 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005375/0.5812, allocations: 44.25 kB / 0.6236 GB, free: 9.023 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005713/0.587, allocations: 2.437 MB / 0.626 GB, free: 6.754 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 8.846e-06/0.587, allocations: 0 / 0.626 GB, free: 6.754 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1295/0.7165, allocations: 33.69 MB / 0.6589 GB, free: 4.941 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001605/0.7167, allocations: 180.2 kB / 0.659 GB, free: 4.727 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005297/0.7221, allocations: 2.279 MB / 0.6613 GB, free: 2.43 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000923/0.723, allocations: 73.7 kB / 0.6613 GB, free: 2.352 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001358/0.7244, allocations: 1.156 MB / 0.6625 GB, free: 1.184 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001967/0.7264, allocations: 0.8665 MB / 0.6633 GB, free: 312 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001203/0.7276, allocations: 292.5 kB / 0.6636 GB, free: 12 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.7278, allocations: 301.1 kB / 0.6639 GB, free: 15.71 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005788/0.7336, allocations: 2.154 MB / 0.666 GB, free: 13.56 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006098/0.7397, allocations: 2.524 MB / 0.6684 GB, free: 10.95 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.06098/0.8007, allocations: 15.48 MB / 0.6836 GB, free: 11.24 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.413e-05/0.8008, allocations: 4 kB / 0.6836 GB, free: 11.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.05038/0.8512, allocations: 15.32 MB / 0.6985 GB, free: 11.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.8514, allocations: 111.4 kB / 0.6986 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.055e-05/0.8514, allocations: 12 kB / 0.6986 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02064/0.872, allocations: 6.273 MB / 0.7048 GB, free: 5.422 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003406/0.8755, allocations: 0.5702 MB / 0.7053 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06923/0.9448, allocations: 24.49 MB / 0.7292 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006118/0.951, allocations: 0.5869 MB / 0.7298 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001049/0.952, allocations: 120 kB / 0.7299 GB, free: 11.48 MB / 0.5294 GB Warning: Assuming fixed start value for the following 7 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 325 * Array equations: 0 * Algorithm blocks: 4 * 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 {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003206/0.9553, allocations: 0.5358 MB / 0.7305 GB, free: 10.93 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001896/0.9572, allocations: 300.3 kB / 0.7307 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04725/1.004, allocations: 14.75 MB / 0.7451 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-05/1.005, allocations: 27.94 kB / 0.7452 GB, free: 11.81 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.859e-05/1.005, allocations: 20 kB / 0.7452 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001081/1.005, allocations: 16.81 kB / 0.7452 GB, free: 11.78 MB / 0.545 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.05163/1.056, allocations: 18.34 MB / 0.7631 GB, free: 9.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-05/1.056, allocations: 0 / 0.7631 GB, free: 9.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001688/1.058, allocations: 243.7 kB / 0.7634 GB, free: 9.031 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01954/1.078, allocations: 6.24 MB / 0.7694 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006521/1.078, allocations: 51.98 kB / 0.7695 GB, free: 2.73 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3465/1.425, allocations: 25.52 MB / 0.7944 GB, free: 165.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.425, allocations: 5.797 kB / 0.7944 GB, free: 165.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05307/1.478, allocations: 17.31 MB / 0.8113 GB, free: 161.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/1.479, allocations: 419.6 kB / 0.8117 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001362/1.481, allocations: 44.33 kB / 0.8118 GB, free: 161.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004204/1.485, allocations: 411.6 kB / 0.8122 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002758/1.488, allocations: 0.5678 MB / 0.8127 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005108/1.488, allocations: 68.92 kB / 0.8128 GB, free: 161.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003047/1.491, allocations: 1.503 MB / 0.8143 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/1.491, allocations: 0.5625 kB / 0.8143 GB, free: 160.9 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005001/1.496, allocations: 1.176 MB / 0.8154 GB, free: 160.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(65,23,7.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007286/1.497, allocations: 180.9 kB / 0.8156 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0204/1.518, allocations: 7.504 MB / 0.8229 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/1.518, allocations: 2.875 kB / 0.8229 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01466/1.532, allocations: 5.083 MB / 0.8279 GB, free: 153.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004787/1.537, allocations: 260.5 kB / 0.8281 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/1.549, allocations: 6.653 MB / 0.8346 GB, free: 146.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/1.551, allocations: 1.804 MB / 0.8364 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00119/1.552, allocations: 174.7 kB / 0.8365 GB, free: 145.1 MB / 0.5606 GB Notification: Performance of SimCode: time 1.302e-06/1.552, allocations: 0 / 0.8365 GB, free: 145.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.07855/1.63, allocations: 63.43 MB / 0.8985 GB, free: 83.56 MB / 0.5606 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppOpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRIICalcHelperMain.o OMCppOpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRIICalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppOpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRIICalcHelperMain.o] Error 1