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.006937/0.006937, allocations: 100.2 kB / 15.87 MB, free: 5.867 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.444/1.444, allocations: 222.9 MB / 239.5 MB, free: 4.82 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.001224/0.001225, allocations: 188 kB / 289.8 MB, free: 2.555 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5514/0.5514, allocations: 78.52 MB / 418.4 MB, free: 3.352 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 71.89 kB / 497.4 MB, free: 6.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.1717, allocations: 68.18 MB / 0.5523 GB, free: 2.688 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.3428/0.5146, allocations: 14.45 MB / 0.5664 GB, free: 30.96 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009737/0.5244, allocations: 3.616 MB / 0.57 GB, free: 29.93 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004559/0.529, allocations: 31.22 kB / 0.57 GB, free: 29.93 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00253/0.5316, allocations: 434.3 kB / 0.5704 GB, free: 29.77 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006416/0.5381, allocations: 1.224 MB / 0.5716 GB, free: 29.2 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.004425/0.5425, allocations: 1.417 MB / 0.573 GB, free: 29.02 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006463/0.549, allocations: 3.518 MB / 0.5764 GB, free: 28.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002026/0.551, allocations: 0.8035 MB / 0.5772 GB, free: 27.96 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00303/0.5541, allocations: 1.396 MB / 0.5786 GB, free: 27.53 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003409/0.5575, allocations: 1.857 MB / 0.5804 GB, free: 27 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001502/0.559, allocations: 176.1 kB / 0.5806 GB, free: 27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002148/0.5612, allocations: 312.6 kB / 0.5809 GB, free: 26.98 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001495/0.5627, allocations: 0.659 MB / 0.5815 GB, free: 26.78 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003713/0.5664, allocations: 1.531 MB / 0.583 GB, free: 25.93 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004852/0.5713, allocations: 3.015 MB / 0.5859 GB, free: 24.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.5713, allocations: 0 / 0.5859 GB, free: 24.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.5713, allocations: 0 / 0.5859 GB, free: 24.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002245/0.5716, allocations: 0 / 0.5859 GB, free: 24.73 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.02855/0.6001, allocations: 6.57 MB / 0.5924 GB, free: 22.11 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.6002, allocations: 12.91 kB / 0.5924 GB, free: 22.11 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01576/0.616, allocations: 2.277 MB / 0.5946 GB, free: 21.67 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00629/0.6223, allocations: 1.871 MB / 0.5964 GB, free: 20.51 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001289/0.6236, allocations: 0.7268 MB / 0.5971 GB, free: 19.86 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001729/0.6254, allocations: 213.1 kB / 0.5973 GB, free: 19.79 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01174/0.6372, allocations: 3.031 MB / 0.6003 GB, free: 18.64 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.343e-05/0.6373, allocations: 0 / 0.6003 GB, free: 18.64 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008585/0.6382, allocations: 90.42 kB / 0.6004 GB, free: 18.57 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.922e-05/0.6383, allocations: 55.09 kB / 0.6004 GB, free: 18.56 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009285/0.6476, allocations: 2.783 MB / 0.6031 GB, free: 17.62 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.02939/0.677, allocations: 9.889 MB / 0.6128 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01315/0.6902, allocations: 4.184 MB / 0.6169 GB, free: 10.46 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004991/0.6953, allocations: 1.976 MB / 0.6188 GB, free: 9.469 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005622/0.6959, allocations: 47.48 kB / 0.6189 GB, free: 9.449 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006307/0.7022, allocations: 2.225 MB / 0.621 GB, free: 8.172 MB / 430.1 MB Notification: Performance of pre-optimization done (n=248): time 1.629e-05/0.7022, allocations: 0 / 0.621 GB, free: 8.172 MB / 430.1 MB Notification: Performance of matching and sorting (n=248): time 0.1177/0.82, allocations: 27.3 MB / 0.6477 GB, free: 13.39 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002073/0.8202, allocations: 188.2 kB / 0.6479 GB, free: 13.17 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007403/0.8277, allocations: 2.273 MB / 0.6501 GB, free: 10.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001327/0.829, allocations: 69.7 kB / 0.6502 GB, free: 10.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.8302, allocations: 1.168 MB / 0.6513 GB, free: 9.625 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00132/0.8315, allocations: 0.8665 MB / 0.6522 GB, free: 8.746 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001216/0.8327, allocations: 0.5657 MB / 0.6527 GB, free: 8.172 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.8329, allocations: 305.1 kB / 0.653 GB, free: 7.871 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004211/0.8371, allocations: 1.951 MB / 0.6549 GB, free: 5.918 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004218/0.8413, allocations: 2.33 MB / 0.6572 GB, free: 3.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05108/0.8924, allocations: 14.03 MB / 0.6709 GB, free: 5.27 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-05/0.8925, allocations: 4 kB / 0.6709 GB, free: 5.266 MB / 478.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.0386/0.9311, allocations: 12.51 MB / 0.6831 GB, free: 8.684 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.472e-05/0.9312, allocations: 110.8 kB / 0.6832 GB, free: 8.551 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.341e-05/0.9313, allocations: 8 kB / 0.6832 GB, free: 8.543 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01675/0.948, allocations: 5.288 MB / 0.6884 GB, free: 3.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003145/0.9512, allocations: 0.5662 MB / 0.6889 GB, free: 2.684 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05362/1.005, allocations: 21.33 MB / 0.7098 GB, free: 13.19 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004567/1.009, allocations: 485.9 kB / 0.7102 GB, free: 12.71 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003516/1.01, allocations: 116 kB / 0.7103 GB, free: 12.6 MB / 0.5137 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.001299/1.011, allocations: 0.5252 MB / 0.7108 GB, free: 12.05 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006056/1.012, allocations: 292.3 kB / 0.7111 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0374/1.049, allocations: 11.91 MB / 0.7228 GB, free: 15.81 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.072e-05/1.049, allocations: 27.94 kB / 0.7228 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.247e-05/1.049, allocations: 20 kB / 0.7228 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.768e-05/1.049, allocations: 11.95 kB / 0.7228 GB, free: 15.75 MB / 0.5294 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.0431/1.092, allocations: 15.5 MB / 0.738 GB, free: 84 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.303e-05/1.093, allocations: 0.625 kB / 0.738 GB, free: 84 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/1.094, allocations: 251.6 kB / 0.7382 GB, free: 15.84 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01679/1.111, allocations: 5.248 MB / 0.7433 GB, free: 10.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005906/1.112, allocations: 57.39 kB / 0.7434 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05247/1.164, allocations: 22.68 MB / 0.7655 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/1.164, allocations: 1.25 kB / 0.7655 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.396/1.56, allocations: 14.28 MB / 0.7795 GB, free: 165.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/1.561, allocations: 406.8 kB / 0.7799 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000613/1.562, allocations: 48.22 kB / 0.7799 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002916/1.565, allocations: 302.4 kB / 0.7802 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002145/1.567, allocations: 0.5698 MB / 0.7807 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002058/1.567, allocations: 63.36 kB / 0.7808 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002177/1.57, allocations: 1.503 MB / 0.7823 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/1.57, allocations: 0 / 0.7823 GB, free: 165.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003694/1.573, allocations: 1.171 MB / 0.7834 GB, free: 165.1 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.0004495/1.574, allocations: 175 kB / 0.7836 GB, free: 165 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01834/1.592, allocations: 6.616 MB / 0.79 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/1.592, allocations: 0.75 kB / 0.79 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01387/1.606, allocations: 4.389 MB / 0.7943 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003684/1.61, allocations: 268.7 kB / 0.7946 GB, free: 163.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01558/1.625, allocations: 6.529 MB / 0.801 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003053/1.628, allocations: 1.808 MB / 0.8027 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001554/1.63, allocations: 173.1 kB / 0.8029 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.613e-06/1.63, allocations: 0.9375 kB / 0.8029 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of Templates: time 0.1034/1.734, allocations: 63.75 MB / 0.8651 GB, free: 114.5 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