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.0009839/0.0009839, allocations: 99.44 kB / 15.71 MB, free: 452 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.496/1.496, allocations: 223.3 MB / 239.7 MB, free: 5.605 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.001254/0.001253, allocations: 184.5 kB / 290.9 MB, free: 2.293 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5858/0.5858, allocations: 78.56 MB / 420.6 MB, free: 4.355 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003743/0.0003744, allocations: 12 kB / 0.4887 GB, free: 6.395 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1624, allocations: 69.38 MB / 0.5564 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.3597/0.5222, allocations: 5.671 MB / 0.562 GB, free: 37.39 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004373/0.5266, allocations: 1.812 MB / 0.5637 GB, free: 37.13 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005613/0.5272, allocations: 10.22 kB / 0.5637 GB, free: 37.13 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004669/0.5277, allocations: 145.2 kB / 0.5639 GB, free: 37.07 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001688/0.5294, allocations: 0.6256 MB / 0.5645 GB, free: 36.89 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.001228/0.5306, allocations: 0.4973 MB / 0.565 GB, free: 36.86 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001354/0.532, allocations: 1.242 MB / 0.5662 GB, free: 36.57 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004096/0.5324, allocations: 227.3 kB / 0.5664 GB, free: 36.54 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006037/0.533, allocations: 0.504 MB / 0.5669 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007504/0.5338, allocations: 0.6737 MB / 0.5676 GB, free: 36.27 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001091/0.5339, allocations: 55.44 kB / 0.5676 GB, free: 36.27 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004488/0.5343, allocations: 176.8 kB / 0.5678 GB, free: 36.26 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002279/0.5346, allocations: 228.2 kB / 0.568 GB, free: 36.21 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001929/0.5348, allocations: 214.3 kB / 0.5682 GB, free: 36.13 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001035/0.5358, allocations: 1.088 MB / 0.5693 GB, free: 35.96 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.5358, allocations: 0.7188 kB / 0.5693 GB, free: 35.96 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.634e-06/0.5358, allocations: 0 / 0.5693 GB, free: 35.96 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.658e-05/0.5359, allocations: 2.375 kB / 0.5693 GB, free: 35.96 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.006714/0.5426, allocations: 2.324 MB / 0.5715 GB, free: 35.11 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.5426, allocations: 9.344 kB / 0.5716 GB, free: 35.11 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004594/0.5472, allocations: 0.7742 MB / 0.5723 GB, free: 35.03 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/0.5485, allocations: 0.7507 MB / 0.573 GB, free: 34.67 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002462/0.5487, allocations: 266.8 kB / 0.5733 GB, free: 34.48 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001339/0.5489, allocations: 78 kB / 0.5734 GB, free: 34.48 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00234/0.5512, allocations: 1.245 MB / 0.5746 GB, free: 34.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.5513, allocations: 4.516 kB / 0.5746 GB, free: 34.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.694e-05/0.5513, allocations: 28.41 kB / 0.5746 GB, free: 34.34 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.692e-05/0.5514, allocations: 17.5 kB / 0.5746 GB, free: 34.34 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001919/0.5533, allocations: 1.02 MB / 0.5756 GB, free: 34.31 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.005117/0.5584, allocations: 3.612 MB / 0.5792 GB, free: 32.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006795/0.5652, allocations: 2.859 MB / 0.5819 GB, free: 31.29 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001277/0.5665, allocations: 0.7222 MB / 0.5827 GB, free: 31.02 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001109/0.5667, allocations: 16.39 kB / 0.5827 GB, free: 31.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.5667, allocations: 45.91 kB / 0.5827 GB, free: 30.97 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.647e-06/0.5667, allocations: 0 / 0.5827 GB, free: 30.97 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02776/0.5945, allocations: 8.226 MB / 0.5907 GB, free: 29.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.5947, allocations: 97.42 kB / 0.5908 GB, free: 29.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.5966, allocations: 0.9592 MB / 0.5918 GB, free: 28.98 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002335/0.5968, allocations: 42.02 kB / 0.5918 GB, free: 28.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004187/0.5972, allocations: 456 kB / 0.5923 GB, free: 28.57 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003878/0.5976, allocations: 319.9 kB / 0.5926 GB, free: 28.33 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.53e-05/0.5977, allocations: 29.94 kB / 0.5926 GB, free: 28.3 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.5979, allocations: 358.6 kB / 0.5929 GB, free: 27.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001743/0.5996, allocations: 0.7566 MB / 0.5937 GB, free: 27.71 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/0.6016, allocations: 0.9742 MB / 0.5946 GB, free: 27.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001857/0.6034, allocations: 0.8311 MB / 0.5954 GB, free: 26.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.6034, allocations: 1.375 kB / 0.5954 GB, free: 26.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01503/0.6185, allocations: 4.924 MB / 0.6002 GB, free: 25.74 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.856e-05/0.6186, allocations: 8.078 kB / 0.6002 GB, free: 25.74 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.864e-05/0.6186, allocations: 5.031 kB / 0.6003 GB, free: 25.74 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006637/0.6253, allocations: 1.874 MB / 0.6021 GB, free: 25.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001484/0.6268, allocations: 256.2 kB / 0.6023 GB, free: 25.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02217/0.649, allocations: 8.77 MB / 0.6109 GB, free: 21.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002045/0.6511, allocations: 203.5 kB / 0.6111 GB, free: 21.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003103/0.6514, allocations: 54.09 kB / 0.6111 GB, free: 21.33 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 order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (150): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 12} Notification: Performance of prepare postOptimizeDAE: time 0.0008718/0.6523, allocations: 262.1 kB / 0.6114 GB, free: 21.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00122/0.6535, allocations: 365.6 kB / 0.6117 GB, free: 20.75 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01133/0.6649, allocations: 4.406 MB / 0.616 GB, free: 16.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.6649, allocations: 15.95 kB / 0.6161 GB, free: 16.73 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.951e-05/0.665, allocations: 4 kB / 0.6161 GB, free: 16.73 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.152e-05/0.665, allocations: 7.984 kB / 0.6161 GB, free: 16.72 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.01334/0.6783, allocations: 5.978 MB / 0.6219 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-05/0.6784, allocations: 0 / 0.6219 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006925/0.6791, allocations: 111.9 kB / 0.622 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005134/0.6843, allocations: 1.864 MB / 0.6238 GB, free: 8.656 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001925/0.6845, allocations: 20.55 kB / 0.6238 GB, free: 8.637 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01814/0.7027, allocations: 10.81 MB / 0.6344 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.7027, allocations: 0 / 0.6344 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01509/0.7178, allocations: 5.516 MB / 0.6398 GB, free: 7.953 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000587/0.7185, allocations: 215.4 kB / 0.64 GB, free: 7.723 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004008/0.7189, allocations: 23.98 kB / 0.64 GB, free: 7.699 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001216/0.7201, allocations: 115.9 kB / 0.6401 GB, free: 7.586 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006092/0.7208, allocations: 174 kB / 0.6403 GB, free: 7.418 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001128/0.7209, allocations: 29.05 kB / 0.6403 GB, free: 7.391 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0012/0.7221, allocations: 0.6356 MB / 0.6409 GB, free: 6.746 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.7221, allocations: 0 / 0.6409 GB, free: 6.746 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002234/0.7243, allocations: 439.6 kB / 0.6414 GB, free: 6.316 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(20,23.0%) 12} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003494/0.7247, allocations: 127.1 kB / 0.6415 GB, free: 6.184 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00663/0.7314, allocations: 2.583 MB / 0.644 GB, free: 3.586 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.7314, allocations: 3.938 kB / 0.644 GB, free: 3.582 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004055/0.7354, allocations: 1.537 MB / 0.6455 GB, free: 2.035 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/0.7373, allocations: 364.4 kB / 0.6459 GB, free: 1.664 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004945/0.7423, allocations: 2.478 MB / 0.6483 GB, free: 15.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000846/0.7431, allocations: 1.074 MB / 0.6493 GB, free: 14.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003606/0.7435, allocations: 79.41 kB / 0.6494 GB, free: 14.02 MB / 462.1 MB Notification: Performance of SimCode: time 2.815e-06/0.7435, allocations: 0 / 0.6494 GB, free: 14.02 MB / 462.1 MB Notification: Performance of Templates: time 0.0367/0.7802, allocations: 21.32 MB / 0.6702 GB, free: 8.852 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++ NOTFOUND -Winvalid-pch -O0 -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/c/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