Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00084/0.0008404, allocations: 91.77 kB / 16.02 MB, free: 80 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.375/1.375, allocations: 223.3 MB / 240 MB, free: 5.504 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.001359/0.001359, allocations: 180.4 kB / 291.3 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4708/0.4708, allocations: 78.54 MB / 420.9 MB, free: 4.227 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004041/0.0004044, allocations: 12 kB / 0.4893 GB, free: 6 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1538, allocations: 69.37 MB / 0.557 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2958/0.4496, allocations: 6.044 MB / 0.5629 GB, free: 36.15 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004352/0.454, allocations: 1.877 MB / 0.5648 GB, free: 35.38 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009218/0.455, allocations: 10.78 kB / 0.5648 GB, free: 35.38 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005282/0.4555, allocations: 171.2 kB / 0.5649 GB, free: 35.32 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001902/0.4574, allocations: 0.6612 MB / 0.5656 GB, free: 35.02 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.00124/0.4587, allocations: 0.5502 MB / 0.5661 GB, free: 34.92 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001396/0.4601, allocations: 1.311 MB / 0.5674 GB, free: 34.6 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000369/0.4604, allocations: 247.7 kB / 0.5676 GB, free: 34.55 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005794/0.461, allocations: 0.5113 MB / 0.5681 GB, free: 34.4 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006212/0.4617, allocations: 0.6927 MB / 0.5688 GB, free: 34.2 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000106/0.4618, allocations: 55.44 kB / 0.5689 GB, free: 34.2 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00043/0.4622, allocations: 190.4 kB / 0.5691 GB, free: 34.19 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001756/0.4624, allocations: 233.8 kB / 0.5693 GB, free: 34.11 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004273/0.4628, allocations: 0.5772 MB / 0.5698 GB, free: 33.86 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009154/0.4638, allocations: 1.098 MB / 0.5709 GB, free: 33.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.4638, allocations: 1 kB / 0.5709 GB, free: 33.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4638, allocations: 0 / 0.5709 GB, free: 33.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.4638, allocations: 1.375 kB / 0.5709 GB, free: 33.66 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.007409/0.4712, allocations: 2.312 MB / 0.5732 GB, free: 32.81 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.4713, allocations: 10.03 kB / 0.5732 GB, free: 32.81 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004898/0.4762, allocations: 0.7678 MB / 0.5739 GB, free: 32.72 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.4776, allocations: 0.7918 MB / 0.5747 GB, free: 32.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002685/0.4778, allocations: 269.8 kB / 0.575 GB, free: 32.13 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001481/0.478, allocations: 73.72 kB / 0.575 GB, free: 32.13 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002339/0.4803, allocations: 1.254 MB / 0.5763 GB, free: 31.99 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.4804, allocations: 4.688 kB / 0.5763 GB, free: 31.98 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.465e-05/0.4805, allocations: 29.25 kB / 0.5763 GB, free: 31.98 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.4805, allocations: 17.09 kB / 0.5763 GB, free: 31.98 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001854/0.4823, allocations: 1.02 MB / 0.5773 GB, free: 31.96 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.005386/0.4877, allocations: 3.617 MB / 0.5808 GB, free: 30.66 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00771/0.4955, allocations: 2.861 MB / 0.5836 GB, free: 30.12 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001548/0.4971, allocations: 0.7307 MB / 0.5843 GB, free: 29.89 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.754e-05/0.4972, allocations: 18.2 kB / 0.5844 GB, free: 29.88 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.4972, allocations: 40.97 kB / 0.5844 GB, free: 29.84 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 2.635e-06/0.4972, allocations: 0 / 0.5844 GB, free: 29.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.03149/0.5287, allocations: 8.259 MB / 0.5925 GB, free: 28.35 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.5289, allocations: 94.47 kB / 0.5926 GB, free: 28.25 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001685/0.5306, allocations: 0.9638 MB / 0.5935 GB, free: 27.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002223/0.5308, allocations: 42.05 kB / 0.5935 GB, free: 27.8 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003147/0.5311, allocations: 459.6 kB / 0.594 GB, free: 27.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003348/0.5315, allocations: 314.3 kB / 0.5943 GB, free: 27.19 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002284/0.5317, allocations: 130.1 kB / 0.5944 GB, free: 27.13 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.611e-05/0.5318, allocations: 310.2 kB / 0.5947 GB, free: 26.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001713/0.5335, allocations: 0.7573 MB / 0.5954 GB, free: 26.56 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001785/0.5353, allocations: 0.9764 MB / 0.5964 GB, free: 26.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02386/0.5592, allocations: 5.498 MB / 0.6018 GB, free: 24.55 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-05/0.5593, allocations: 2.25 kB / 0.6018 GB, free: 24.55 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01675/0.576, allocations: 4.982 MB / 0.6066 GB, free: 23.4 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.013e-05/0.5761, allocations: 7.219 kB / 0.6066 GB, free: 23.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.97e-05/0.5762, allocations: 6.312 kB / 0.6066 GB, free: 23.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006952/0.5831, allocations: 1.793 MB / 0.6084 GB, free: 23.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.5848, allocations: 255.5 kB / 0.6086 GB, free: 23.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01998/0.6048, allocations: 8.623 MB / 0.6171 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/0.6067, allocations: 204.4 kB / 0.6172 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002729/0.607, allocations: 59.97 kB / 0.6173 GB, free: 15.64 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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.0008757/0.6079, allocations: 256 kB / 0.6175 GB, free: 15.38 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/0.609, allocations: 358.5 kB / 0.6179 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01206/0.6211, allocations: 4.429 MB / 0.6222 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.961e-05/0.6212, allocations: 15.94 kB / 0.6222 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.898e-05/0.6212, allocations: 4 kB / 0.6222 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.237e-05/0.6212, allocations: 7.984 kB / 0.6222 GB, free: 10.54 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.0148/0.636, allocations: 5.973 MB / 0.6281 GB, free: 4.465 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.207e-05/0.6361, allocations: 0 / 0.6281 GB, free: 4.465 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006251/0.6367, allocations: 108.4 kB / 0.6282 GB, free: 4.359 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005439/0.6422, allocations: 1.869 MB / 0.63 GB, free: 2.484 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001729/0.6424, allocations: 24.8 kB / 0.63 GB, free: 2.461 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02082/0.6632, allocations: 10.8 MB / 0.6406 GB, free: 7.324 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/0.6633, allocations: 4 kB / 0.6406 GB, free: 7.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01721/0.6805, allocations: 5.531 MB / 0.646 GB, free: 1.762 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006296/0.6812, allocations: 207.5 kB / 0.6462 GB, free: 1.539 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004753/0.6816, allocations: 27.98 kB / 0.6462 GB, free: 1.512 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001342/0.683, allocations: 119.9 kB / 0.6463 GB, free: 1.395 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006218/0.6836, allocations: 168.6 kB / 0.6465 GB, free: 1.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001381/0.6838, allocations: 32.92 kB / 0.6465 GB, free: 1.199 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001102/0.6849, allocations: 0.6395 MB / 0.6471 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6849, allocations: 0 / 0.6471 GB, free: 0.5508 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001914/0.6868, allocations: 439.6 kB / 0.6476 GB, free: 124 kB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003933/0.6872, allocations: 145.2 kB / 0.6477 GB, free: 15.97 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006996/0.6943, allocations: 2.564 MB / 0.6502 GB, free: 13.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.6943, allocations: 0 / 0.6502 GB, free: 13.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004589/0.6989, allocations: 1.538 MB / 0.6517 GB, free: 11.85 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001948/0.7008, allocations: 364.8 kB / 0.652 GB, free: 11.48 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0047/0.7056, allocations: 2.569 MB / 0.6546 GB, free: 8.926 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006818/0.7063, allocations: 1.081 MB / 0.6556 GB, free: 7.812 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003438/0.7066, allocations: 79.41 kB / 0.6557 GB, free: 7.734 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.7066, allocations: 0 / 0.6557 GB, free: 7.734 MB / 462.1 MB Notification: Performance of Templates: time 0.03076/0.7374, allocations: 21.21 MB / 0.6764 GB, free: 2.684 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.Discretization.FourthOrder_AVRII_DiscreteCalcHelperMain.o OMCppOpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_DiscreteCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppOpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_DiscreteCalcHelperMain.o] Error 1