Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008883/0.0008883, allocations: 108.4 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000855/0.000855, allocations: 198.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.175/1.175, allocations: 205.1 MB / 223.9 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1554/0.1554, allocations: 37.98 MB / 309.3 MB, free: 6.238 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 63.92 kB / 375.3 MB, free: 4.117 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1757/0.1769, allocations: 55.25 MB / 430.5 MB, free: 19.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.005004/0.1819, allocations: 5.362 MB / 435.9 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002709/0.1847, allocations: 2.669 MB / 438.5 MB, free: 11.72 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000347/0.185, allocations: 19.88 kB / 438.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009205/0.186, allocations: 402.6 kB / 439 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000865/0.1868, allocations: 498.2 kB / 439.4 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005048/0.1873, allocations: 247.4 kB / 439.7 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007159/0.1881, allocations: 1.134 MB / 440.8 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004114/0.1885, allocations: 320.2 kB / 441.1 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003295/0.1888, allocations: 270.8 kB / 441.4 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.1891, allocations: 342.8 kB / 441.7 MB, free: 8.531 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.975e-05/0.1892, allocations: 28 kB / 441.8 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008152/0.19, allocations: 0.7755 MB / 442.5 MB, free: 7.727 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.1901, allocations: 183.5 kB / 442.7 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001602/0.1903, allocations: 246.7 kB / 442.9 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004142/0.1907, allocations: 0.5652 MB / 443.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.02e-05/0.1907, allocations: 3.984 kB / 443.5 MB, free: 6.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.62e-07/0.1907, allocations: 4 kB / 443.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1907, allocations: 0 / 443.5 MB, free: 6.73 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.0007971/0.1916, allocations: 0.776 MB / 444.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.1916, allocations: 8.031 kB / 444.3 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001368/0.193, allocations: 204.1 kB / 444.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003185/0.1933, allocations: 350.5 kB / 444.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.1933, allocations: 33.36 kB / 444.9 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.25e-05/0.1934, allocations: 48.22 kB / 444.9 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006993/0.1941, allocations: 0.6266 MB / 445.6 MB, free: 4.586 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.1941, allocations: 4 kB / 445.6 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.051e-05/0.1942, allocations: 19.98 kB / 445.6 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.781e-05/0.1942, allocations: 40.92 kB / 445.6 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006892/0.1949, allocations: 0.605 MB / 446.2 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.1972, allocations: 2.261 MB / 448.5 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004579/0.1976, allocations: 490.3 kB / 449 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002352/0.1979, allocations: 241.7 kB / 449.2 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.054e-05/0.1979, allocations: 11.98 kB / 449.2 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.53e-05/0.1979, allocations: 34.56 kB / 449.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=42): time 1.463e-06/0.1979, allocations: 0 / 449.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of matching and sorting (n=43): time 0.002919/0.2009, allocations: 1.712 MB / 451 MB, free: 14.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.2009, allocations: 89.23 kB / 451 MB, free: 14.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002423/0.2012, allocations: 279 kB / 451.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.2012, allocations: 33.7 kB / 451.3 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001202/0.2013, allocations: 224 kB / 451.6 MB, free: 14.28 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.2014, allocations: 153.8 kB / 451.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.2016, allocations: 90.16 kB / 451.8 MB, free: 14.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.2017, allocations: 350.7 kB / 452.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002451/0.2019, allocations: 177 kB / 452.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/0.2022, allocations: 286.4 kB / 452.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005928/0.2028, allocations: 0.4966 MB / 453.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2029, allocations: 7.938 kB / 453.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001056/0.2039, allocations: 0.677 MB / 453.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.204, allocations: 4 kB / 453.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.204, allocations: 8.438 kB / 453.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000521/0.2045, allocations: 184.6 kB / 454 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003281/0.2048, allocations: 91.88 kB / 454.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002954/0.2078, allocations: 2.527 MB / 456.6 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002131/0.208, allocations: 19.98 kB / 456.6 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.608e-05/0.2081, allocations: 23.98 kB / 456.6 MB, free: 8.961 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001941/0.2083, allocations: 193.7 kB / 456.8 MB, free: 8.762 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.341e-05/0.2083, allocations: 39.53 kB / 456.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/0.2094, allocations: 0.6373 MB / 457.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.2094, allocations: 4.109 kB / 457.5 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-06/0.2094, allocations: 3.938 kB / 457.5 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.2094, allocations: 7.984 kB / 457.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001917/0.2114, allocations: 1.351 MB / 458.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.2114, allocations: 0 / 458.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003307/0.2117, allocations: 79.89 kB / 458.9 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004172/0.2121, allocations: 140.7 kB / 459.1 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.2122, allocations: 15.98 kB / 459.1 MB, free: 6.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002468/0.2147, allocations: 2.315 MB / 461.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2147, allocations: 0 / 461.4 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.216, allocations: 0.9523 MB / 462.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.661e-05/0.2161, allocations: 112.8 kB / 462.5 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.2161, allocations: 12 kB / 462.5 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000193/0.2163, allocations: 15.98 kB / 462.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.217e-05/0.2164, allocations: 31.95 kB / 462.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.496e-05/0.2164, allocations: 8 kB / 462.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.2166, allocations: 209.9 kB / 462.7 MB, free: 2.562 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.2166, allocations: 0 / 462.7 MB, free: 2.562 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005501/0.2172, allocations: 132 kB / 462.9 MB, free: 2.434 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia.w,constantTorque.phi,inertia1.w,constantTorque1.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001043/0.2173, allocations: 115.1 kB / 463 MB, free: 2.312 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.2183, allocations: 0.6659 MB / 463.7 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.2183, allocations: 8.25 kB / 463.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006015/0.2189, allocations: 418.3 kB / 464.1 MB, free: 1.207 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004394/0.2194, allocations: 59.91 kB / 464.1 MB, free: 1.152 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001664/0.2211, allocations: 1.359 MB / 465.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003968/0.2215, allocations: 0.871 MB / 466.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.897e-05/0.2216, allocations: 39.42 kB / 466.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2216, allocations: 4 kB / 466.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of Templates: time 0.0076/0.2292, allocations: 6.878 MB / 473.3 MB, free: 7.934 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2.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 OMCppPowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.o OMCppPowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.o] Error 1