Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008898/0.0008899, allocations: 174.4 kB / 15.77 MB, free: 6.324 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.478/1.478, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008069/0.0008066, allocations: 98.22 kB / 270.3 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1796/0.1796, allocations: 38.06 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004134/0.0004138, allocations: 8 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1333/0.1337, allocations: 56.34 MB / 479.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.0062/0.14, allocations: 4.698 MB / 483.8 MB, free: 13.32 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003857/0.1439, allocations: 2.472 MB / 486.2 MB, free: 10.83 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003559/0.1443, allocations: 23.88 kB / 486.3 MB, free: 10.81 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002763/0.1446, allocations: 75.39 kB / 486.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001098/0.1457, allocations: 414.1 kB / 486.7 MB, free: 10.33 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006084/0.1463, allocations: 219.5 kB / 487 MB, free: 10.11 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008861/0.1472, allocations: 0.8879 MB / 487.8 MB, free: 9.223 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00101/0.1482, allocations: 0.5422 MB / 488.4 MB, free: 8.664 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003765/0.1486, allocations: 254.8 kB / 488.6 MB, free: 8.414 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004431/0.149, allocations: 310.9 kB / 488.9 MB, free: 8.109 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.589e-05/0.1491, allocations: 27.94 kB / 489 MB, free: 8.082 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007281/0.1498, allocations: 339.1 kB / 489.3 MB, free: 7.75 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001853/0.15, allocations: 175.5 kB / 489.5 MB, free: 7.578 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.1502, allocations: 113.4 kB / 489.6 MB, free: 7.461 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006867/0.1509, allocations: 0.5377 MB / 490.1 MB, free: 6.922 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.1509, allocations: 0 / 490.1 MB, free: 6.922 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1509, allocations: 0 / 490.1 MB, free: 6.922 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.1509, allocations: 0 / 490.1 MB, free: 6.922 MB / 330.7 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.001189/0.1521, allocations: 0.6981 MB / 490.8 MB, free: 6.176 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1521, allocations: 12.03 kB / 490.8 MB, free: 6.164 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001615/0.1538, allocations: 199.2 kB / 491 MB, free: 5.969 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005623/0.1543, allocations: 353.2 kB / 491.4 MB, free: 5.582 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.569e-05/0.1544, allocations: 33 kB / 491.4 MB, free: 5.547 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.1545, allocations: 40 kB / 491.4 MB, free: 5.508 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.1556, allocations: 0.6263 MB / 492.1 MB, free: 4.855 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.164e-05/0.1556, allocations: 7.891 kB / 492.1 MB, free: 4.848 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.385e-05/0.1557, allocations: 23.89 kB / 492.1 MB, free: 4.824 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.985e-05/0.1558, allocations: 40.97 kB / 492.1 MB, free: 4.785 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009973/0.1568, allocations: 0.5972 MB / 492.7 MB, free: 4.188 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003456/0.1602, allocations: 2.261 MB / 495 MB, free: 1.809 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006797/0.1609, allocations: 494.7 kB / 495.5 MB, free: 1.289 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003781/0.1613, allocations: 233.6 kB / 495.7 MB, free: 1.055 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-05/0.1614, allocations: 11.98 kB / 495.7 MB, free: 1.043 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.262e-05/0.1614, allocations: 38.5 kB / 495.8 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 2.886e-06/0.1614, allocations: 4 kB / 495.8 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of matching and sorting (n=43): time 0.003659/0.1651, allocations: 1.701 MB / 497.5 MB, free: 15.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.977e-05/0.1652, allocations: 81.11 kB / 497.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003127/0.1655, allocations: 275 kB / 497.8 MB, free: 14.83 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.1655, allocations: 37.7 kB / 497.8 MB, free: 14.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.1657, allocations: 228 kB / 498.1 MB, free: 14.56 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.1659, allocations: 153.8 kB / 498.2 MB, free: 14.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.258e-05/0.1659, allocations: 8 kB / 498.2 MB, free: 14.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.1661, allocations: 354.8 kB / 498.6 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002947/0.1664, allocations: 173 kB / 498.7 MB, free: 13.88 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004064/0.1668, allocations: 290.3 kB / 499 MB, free: 13.55 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.1672, allocations: 219.9 kB / 499.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1672, allocations: 4 kB / 499.2 MB, free: 13.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.00116/0.1683, allocations: 0.6771 MB / 499.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.1684, allocations: 4 kB / 499.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.1684, allocations: 4 kB / 499.9 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006336/0.169, allocations: 172.7 kB / 0.4884 GB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003719/0.1694, allocations: 100 kB / 0.4885 GB, free: 12.37 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003423/0.1729, allocations: 2.525 MB / 0.4909 GB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00032/0.1732, allocations: 23.98 kB / 0.491 GB, free: 9.688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.1733, allocations: 20.11 kB / 0.491 GB, free: 9.668 MB / 346.7 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 (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 {4 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002708/0.1735, allocations: 209.5 kB / 0.4912 GB, free: 9.453 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.199e-05/0.1736, allocations: 35.53 kB / 0.4912 GB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.1748, allocations: 0.6335 MB / 0.4918 GB, free: 8.773 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.1748, allocations: 11.97 kB / 0.4918 GB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.1748, allocations: 8 kB / 0.4918 GB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1749, allocations: 0 / 0.4918 GB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/0.177, allocations: 1.343 MB / 0.4932 GB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.177, allocations: 0 / 0.4932 GB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003421/0.1774, allocations: 79.89 kB / 0.4932 GB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004526/0.1779, allocations: 148.7 kB / 0.4934 GB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.101e-05/0.1779, allocations: 12 kB / 0.4934 GB, free: 7.094 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002717/0.1806, allocations: 2.299 MB / 0.4956 GB, free: 4.66 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1806, allocations: 3.938 kB / 0.4956 GB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001449/0.1821, allocations: 0.957 MB / 0.4966 GB, free: 3.668 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.1822, allocations: 108.7 kB / 0.4967 GB, free: 3.543 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.1823, allocations: 8 kB / 0.4967 GB, free: 3.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002055/0.1825, allocations: 12.03 kB / 0.4967 GB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.283e-05/0.1825, allocations: 35.95 kB / 0.4967 GB, free: 3.488 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.088e-05/0.1826, allocations: 16 kB / 0.4967 GB, free: 3.473 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002198/0.1828, allocations: 197.9 kB / 0.4969 GB, free: 3.281 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1828, allocations: 0 / 0.4969 GB, free: 3.281 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006279/0.1835, allocations: 136 kB / 0.4971 GB, free: 3.148 MB / 346.7 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 (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 {3 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001746/0.1836, allocations: 111.8 kB / 0.4972 GB, free: 3.031 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.1849, allocations: 0.6619 MB / 0.4978 GB, free: 2.359 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.1849, allocations: 3.938 kB / 0.4978 GB, free: 2.355 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007519/0.1857, allocations: 426.9 kB / 0.4982 GB, free: 1.926 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005182/0.1862, allocations: 60.62 kB / 0.4983 GB, free: 1.867 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.1885, allocations: 1.402 MB / 0.4997 GB, free: 436 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005697/0.1891, allocations: 0.871 MB / 0.5005 GB, free: 15.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.1892, allocations: 39.42 kB / 0.5005 GB, free: 15.49 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.1892, allocations: 0 / 0.5005 GB, free: 15.49 MB / 362.7 MB Notification: Performance of Templates: time 0.01068/0.1999, allocations: 6.865 MB / 0.5072 GB, free: 8.609 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2.makefile clang++ -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.cpp In file included from OMCppPowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.cpp:31: ./OMCppPowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2Jacobian.cpp:117:50: error: use of undeclared identifier 'fixedLoad_P_terminal_P_i_P_SeedNLSJac1_' _NLSJac1jac_y(2) = ((-dot_array(tmp23, fixedLoad_P_terminal_P_i_P_SeedNLSJac1_)) - dot_array(tmp24, _fixedLoad_P_terminal_P_i_)); ^ 1 error generated. make: *** [: OMCppPowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.o] Error 1