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.001577/0.001581, allocations: 190.7 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001264/0.001263, allocations: 98.84 kB / 270.2 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2755/0.2755, allocations: 38.05 MB / 356.6 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005102/0.0005103, allocations: 12 kB / 422.7 MB, free: 26.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1541, allocations: 56.34 MB / 479 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest2): time 0.01176/0.1659, allocations: 4.505 MB / 483.5 MB, free: 13.52 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008357/0.1743, allocations: 2.414 MB / 486 MB, free: 11.09 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006747/0.1751, allocations: 19.94 kB / 486 MB, free: 11.07 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005037/0.1756, allocations: 83.42 kB / 486.1 MB, free: 10.99 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002385/0.178, allocations: 346.8 kB / 486.4 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001587/0.1797, allocations: 215.5 kB / 486.6 MB, free: 10.44 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001326/0.181, allocations: 387.1 kB / 487 MB, free: 10.06 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002155/0.1832, allocations: 0.5343 MB / 487.5 MB, free: 9.508 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008297/0.1841, allocations: 219.2 kB / 487.7 MB, free: 9.293 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006038/0.1847, allocations: 203.2 kB / 487.9 MB, free: 9.094 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.727e-05/0.1848, allocations: 23.94 kB / 488 MB, free: 9.07 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001708/0.1865, allocations: 323.4 kB / 488.3 MB, free: 8.754 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003568/0.1869, allocations: 159.6 kB / 488.4 MB, free: 8.598 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002967/0.1873, allocations: 109.5 kB / 488.5 MB, free: 8.484 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001718/0.189, allocations: 0.5455 MB / 489.1 MB, free: 7.938 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1891, allocations: 0 / 489.1 MB, free: 7.938 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.1891, allocations: 0 / 489.1 MB, free: 7.938 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.1891, allocations: 0 / 489.1 MB, free: 7.938 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.002125/0.1912, allocations: 0.6902 MB / 489.8 MB, free: 7.199 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.498e-05/0.1913, allocations: 12.02 kB / 489.8 MB, free: 7.188 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004431/0.1958, allocations: 223.2 kB / 490 MB, free: 6.969 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/0.197, allocations: 349.2 kB / 490.3 MB, free: 6.586 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.6e-05/0.1972, allocations: 32.98 kB / 490.4 MB, free: 6.551 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001998/0.1974, allocations: 43.98 kB / 490.4 MB, free: 6.508 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002482/0.1999, allocations: 0.6146 MB / 491 MB, free: 5.867 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.333e-05/0.2, allocations: 7.844 kB / 491 MB, free: 5.859 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001541/0.2002, allocations: 19.95 kB / 491.1 MB, free: 5.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001305/0.2003, allocations: 36.92 kB / 491.1 MB, free: 5.805 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002511/0.2029, allocations: 0.6089 MB / 491.7 MB, free: 5.195 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008546/0.2115, allocations: 2.261 MB / 494 MB, free: 2.816 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001808/0.2133, allocations: 494.7 kB / 494.4 MB, free: 2.297 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.118e-05/0.2135, allocations: 8.016 kB / 494.5 MB, free: 2.289 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.685e-05/0.2135, allocations: 42.55 kB / 494.5 MB, free: 2.238 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 5.841e-06/0.2136, allocations: 0 / 494.5 MB, free: 2.238 MB / 330.7 MB Notification: Performance of matching and sorting (n=43): time 0.009324/0.2229, allocations: 1.698 MB / 496.2 MB, free: 476 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.945e-05/0.2231, allocations: 81.11 kB / 496.3 MB, free: 376 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007155/0.2239, allocations: 279.1 kB / 496.5 MB, free: 80 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001334/0.224, allocations: 33.7 kB / 496.6 MB, free: 40 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003291/0.2244, allocations: 286.5 kB / 496.9 MB, free: 15.76 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000365/0.2248, allocations: 149.8 kB / 497 MB, free: 15.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.664e-05/0.2248, allocations: 8 kB / 497 MB, free: 15.6 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002236/0.2251, allocations: 334.8 kB / 497.3 MB, free: 15.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008381/0.226, allocations: 173 kB / 497.5 MB, free: 15.1 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009156/0.2269, allocations: 286.4 kB / 497.8 MB, free: 14.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000981/0.2279, allocations: 223.9 kB / 498 MB, free: 14.55 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.228, allocations: 0 / 498 MB, free: 14.55 MB / 346.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.003327/0.2313, allocations: 0.6615 MB / 498.7 MB, free: 13.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.725e-05/0.2314, allocations: 11.95 kB / 498.7 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.126e-05/0.2315, allocations: 4.438 kB / 498.7 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001606/0.2331, allocations: 176.7 kB / 498.9 MB, free: 13.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.2343, allocations: 95.81 kB / 498.9 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007267/0.2416, allocations: 2.584 MB / 0.4898 GB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004797/0.2421, allocations: 23.98 kB / 0.4898 GB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.76e-05/0.2422, allocations: 16 kB / 0.4898 GB, free: 10.84 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.0003703/0.2426, allocations: 209.6 kB / 0.49 GB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.2427, allocations: 31.62 kB / 0.49 GB, free: 10.6 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002031/0.2447, allocations: 0.6333 MB / 0.4907 GB, free: 9.953 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.2448, allocations: 11.98 kB / 0.4907 GB, free: 9.941 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2448, allocations: 4 kB / 0.4907 GB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.02e-05/0.2448, allocations: 112 / 0.4907 GB, free: 9.938 MB / 346.7 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.003746/0.2486, allocations: 1.351 MB / 0.492 GB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.2486, allocations: 0 / 0.492 GB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007036/0.2493, allocations: 87.83 kB / 0.4921 GB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008358/0.2502, allocations: 140.7 kB / 0.4922 GB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.166e-05/0.2502, allocations: 16.06 kB / 0.4922 GB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004666/0.2549, allocations: 2.362 MB / 0.4945 GB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.255, allocations: 8 kB / 0.4945 GB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002538/0.2575, allocations: 0.9853 MB / 0.4955 GB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001788/0.2577, allocations: 108.7 kB / 0.4956 GB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.301e-05/0.2578, allocations: 12.03 kB / 0.4956 GB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003681/0.2582, allocations: 12 kB / 0.4956 GB, free: 4.578 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.2584, allocations: 35.91 kB / 0.4957 GB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-05/0.2584, allocations: 11.98 kB / 0.4957 GB, free: 4.531 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003072/0.2588, allocations: 198 kB / 0.4959 GB, free: 4.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.2588, allocations: 0 / 0.4959 GB, free: 4.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009015/0.2597, allocations: 140 kB / 0.496 GB, free: 4.203 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.0001895/0.2599, allocations: 115.3 kB / 0.4961 GB, free: 4.082 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002012/0.2619, allocations: 0.6619 MB / 0.4968 GB, free: 3.41 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.262, allocations: 0 / 0.4968 GB, free: 3.41 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.2631, allocations: 430.9 kB / 0.4972 GB, free: 2.977 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006007/0.2638, allocations: 56.48 kB / 0.4972 GB, free: 2.922 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003081/0.2669, allocations: 1.398 MB / 0.4986 GB, free: 1.484 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006986/0.2676, allocations: 0.8871 MB / 0.4995 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.2678, allocations: 31.44 kB / 0.4995 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of SimCode: time 1.262e-06/0.2679, allocations: 0 / 0.4995 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of Templates: time 0.01569/0.2836, allocations: 6.659 MB / 0.506 GB, free: 9.867 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 b'clang++ -fopenmp=libomp -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 OMCppPowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.cpp\nIn file included from OMCppPowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.cpp:31:\n./OMCppPowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2Jacobian.cpp:117:56: error: use of undeclared identifier \'fixedLoad_P_terminal_P_i_P_SeedNLSJac1_\'\n _NLSJac1jac_y(2) = ((-dot_array(/*t4*/tmp33, fixedLoad_P_terminal_P_i_P_SeedNLSJac1_)) - dot_array(/*t4*/tmp34, _fixedLoad_P_terminal_P_i_));\n ^\n1 error generated.\n: recipe for target \'OMCppPowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.o\' failed\nmake: *** [OMCppPowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest2CalcHelperMain.o] Error 1\n'