Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 96.14 kB / 15.87 MB, free: 16 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.463/1.463, allocations: 222.9 MB / 239.5 MB, free: 4.738 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.001508/0.001508, allocations: 188.5 kB / 289.8 MB, free: 2.492 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5462/0.5462, allocations: 78.52 MB / 418.4 MB, free: 3.332 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 75.88 kB / 497.4 MB, free: 6.781 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.1668, allocations: 68.17 MB / 0.5523 GB, free: 2.566 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.3265/0.4934, allocations: 6.866 MB / 0.559 GB, free: 35.99 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004853/0.4983, allocations: 2.005 MB / 0.561 GB, free: 35.44 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008485/0.4992, allocations: 11.28 kB / 0.561 GB, free: 35.44 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007963/0.5001, allocations: 181.5 kB / 0.5612 GB, free: 35.43 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00185/0.5019, allocations: 0.7159 MB / 0.5619 GB, free: 35.28 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.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.5032, allocations: 0.5855 MB / 0.5624 GB, free: 35.2 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001469/0.5047, allocations: 1.496 MB / 0.5639 GB, free: 35.12 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004315/0.5052, allocations: 293 kB / 0.5642 GB, free: 35.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006489/0.5058, allocations: 0.5897 MB / 0.5647 GB, free: 34.93 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007668/0.5066, allocations: 0.7811 MB / 0.5655 GB, free: 34.73 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.5068, allocations: 73.81 kB / 0.5656 GB, free: 34.73 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004807/0.5072, allocations: 204.5 kB / 0.5658 GB, free: 34.73 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002401/0.5075, allocations: 277 kB / 0.566 GB, free: 34.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004813/0.508, allocations: 0.6222 MB / 0.5666 GB, free: 34.42 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009787/0.509, allocations: 1.257 MB / 0.5679 GB, free: 34.21 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.509, allocations: 0 / 0.5679 GB, free: 34.21 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.509, allocations: 7.703 kB / 0.5679 GB, free: 34.21 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.509, allocations: 0 / 0.5679 GB, free: 34.21 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008442/0.5175, allocations: 2.686 MB / 0.5705 GB, free: 33.23 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.5175, allocations: 10.66 kB / 0.5705 GB, free: 33.23 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004824/0.5224, allocations: 0.7771 MB / 0.5713 GB, free: 33.14 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00164/0.524, allocations: 0.8886 MB / 0.5721 GB, free: 32.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002695/0.5243, allocations: 258.4 kB / 0.5724 GB, free: 32.54 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001661/0.5245, allocations: 85.64 kB / 0.5725 GB, free: 32.53 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002096/0.5266, allocations: 1.087 MB / 0.5735 GB, free: 32.45 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.5266, allocations: 0.6875 kB / 0.5735 GB, free: 32.45 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.513e-05/0.5267, allocations: 30.62 kB / 0.5736 GB, free: 32.45 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.5267, allocations: 19.81 kB / 0.5736 GB, free: 32.45 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001973/0.5287, allocations: 0.9916 MB / 0.5745 GB, free: 32.44 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.006254/0.535, allocations: 3.816 MB / 0.5783 GB, free: 31.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006896/0.5419, allocations: 2.375 MB / 0.5806 GB, free: 30.27 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.5433, allocations: 0.6765 MB / 0.5813 GB, free: 30 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.5434, allocations: 18.81 kB / 0.5813 GB, free: 30 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00177/0.5451, allocations: 0.8244 MB / 0.5821 GB, free: 29.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.795e-06/0.5452, allocations: 0.5 kB / 0.5821 GB, free: 29.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02957/0.5747, allocations: 7.081 MB / 0.589 GB, free: 28.29 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.02e-05/0.5749, allocations: 119.1 kB / 0.5891 GB, free: 28.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002695/0.5776, allocations: 1.08 MB / 0.5902 GB, free: 27.71 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002185/0.5778, allocations: 42.23 kB / 0.5902 GB, free: 27.67 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005264/0.5784, allocations: 499.3 kB / 0.5907 GB, free: 27.28 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005422/0.5789, allocations: 360.5 kB / 0.591 GB, free: 27 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008583/0.5798, allocations: 282.6 kB / 0.5913 GB, free: 26.88 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.274e-05/0.5799, allocations: 301.6 kB / 0.5916 GB, free: 26.58 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001882/0.5817, allocations: 0.7685 MB / 0.5923 GB, free: 26.29 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.5839, allocations: 0.9391 MB / 0.5932 GB, free: 25.85 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02615/0.61, allocations: 5.581 MB / 0.5987 GB, free: 24.11 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.632e-05/0.6101, allocations: 5.25 kB / 0.5987 GB, free: 24.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01597/0.6261, allocations: 4.33 MB / 0.6029 GB, free: 22.94 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.785e-05/0.6262, allocations: 57.94 kB / 0.603 GB, free: 22.88 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/0.6263, allocations: 5.391 kB / 0.603 GB, free: 22.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005817/0.6321, allocations: 1.511 MB / 0.6045 GB, free: 22.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00176/0.6339, allocations: 298.9 kB / 0.6048 GB, free: 22.56 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01817/0.652, allocations: 7.615 MB / 0.6122 GB, free: 17.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/0.6543, allocations: 201.8 kB / 0.6124 GB, free: 17.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003288/0.6546, allocations: 57.66 kB / 0.6124 GB, free: 17.53 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.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: 13 * 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 (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009159/0.6555, allocations: 302.7 kB / 0.6127 GB, free: 17.22 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004075/0.656, allocations: 126.4 kB / 0.6128 GB, free: 17.1 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01173/0.6677, allocations: 3.874 MB / 0.6166 GB, free: 13.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.6677, allocations: 12 kB / 0.6166 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.226e-05/0.6678, allocations: 7.938 kB / 0.6166 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/0.6678, allocations: 3.984 kB / 0.6166 GB, free: 13.17 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 postOpt removeSimpleEquations (simulation): time 0.01487/0.6827, allocations: 5.457 MB / 0.622 GB, free: 7.605 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/0.6827, allocations: 4.031 kB / 0.622 GB, free: 7.602 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006369/0.6834, allocations: 100.3 kB / 0.6221 GB, free: 7.504 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005161/0.6886, allocations: 1.615 MB / 0.6237 GB, free: 5.883 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001414/0.6887, allocations: 20 kB / 0.6237 GB, free: 5.863 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01777/0.7065, allocations: 8.754 MB / 0.6322 GB, free: 12.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.851e-06/0.7066, allocations: 4 kB / 0.6322 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01445/0.721, allocations: 4.738 MB / 0.6369 GB, free: 8.059 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005988/0.7217, allocations: 223.3 kB / 0.6371 GB, free: 7.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000395/0.7221, allocations: 23.94 kB / 0.6371 GB, free: 7.797 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/0.7235, allocations: 108.8 kB / 0.6372 GB, free: 7.691 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006643/0.7241, allocations: 196.7 kB / 0.6374 GB, free: 7.496 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.7243, allocations: 20 kB / 0.6374 GB, free: 7.477 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001343/0.7256, allocations: 0.7313 MB / 0.6381 GB, free: 6.738 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7256, allocations: 0 / 0.6381 GB, free: 6.738 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001981/0.7276, allocations: 475.4 kB / 0.6386 GB, free: 6.273 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,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 (64): * Single equations (assignments): 61 * 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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003573/0.728, allocations: 133.1 kB / 0.6387 GB, free: 6.133 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006476/0.7345, allocations: 2.502 MB / 0.6411 GB, free: 3.594 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/0.7345, allocations: 4.75 kB / 0.6411 GB, free: 3.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004327/0.7388, allocations: 1.606 MB / 0.6427 GB, free: 1.953 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001397/0.7402, allocations: 118.3 kB / 0.6428 GB, free: 1.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004973/0.7452, allocations: 2.729 MB / 0.6455 GB, free: 15.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008198/0.7461, allocations: 1.124 MB / 0.6466 GB, free: 13.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000385/0.7465, allocations: 79.42 kB / 0.6467 GB, free: 13.88 MB / 462.1 MB Notification: Performance of SimCode: time 9.51e-07/0.7465, allocations: 0 / 0.6467 GB, free: 13.88 MB / 462.1 MB Notification: Performance of Templates: time 0.03463/0.7811, allocations: 23.43 MB / 0.6695 GB, free: 6.641 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRIICalcHelperMain.o OMCppOpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRIICalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppOpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRIICalcHelperMain.o] Error 1