Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.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.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001627/0.001627, allocations: 191.3 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.134/2.134, 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.001153/0.001153, allocations: 94.8 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.2777/0.2777, allocations: 38.06 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004708/0.000471, allocations: 12 kB / 422.7 MB, free: 26.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1096, allocations: 56.33 MB / 479 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.ReferenceSynchron): time 0.00717/0.1168, allocations: 4.303 MB / 483.3 MB, free: 13.7 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004136/0.121, allocations: 1.568 MB / 484.9 MB, free: 12.13 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004661/0.1215, allocations: 27.81 kB / 484.9 MB, free: 12.1 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003158/0.1218, allocations: 67.52 kB / 485 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00103/0.1229, allocations: 211.4 kB / 485.2 MB, free: 11.83 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00108/0.124, allocations: 235.4 kB / 485.4 MB, free: 11.6 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006882/0.1247, allocations: 303.7 kB / 485.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001265/0.126, allocations: 0.5066 MB / 486.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005074/0.1265, allocations: 175.3 kB / 486.4 MB, free: 10.6 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006299/0.1272, allocations: 263.3 kB / 486.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.04e-05/0.1273, allocations: 20 kB / 486.7 MB, free: 10.32 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005569/0.1279, allocations: 163.7 kB / 486.8 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003192/0.1282, allocations: 203.5 kB / 487 MB, free: 9.965 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001799/0.1284, allocations: 105.5 kB / 487.1 MB, free: 9.855 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000858/0.1293, allocations: 498.8 kB / 487.6 MB, free: 9.367 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1293, allocations: 4 kB / 487.6 MB, free: 9.363 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.978e-06/0.1293, allocations: 4 kB / 487.6 MB, free: 9.359 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.395e-06/0.1293, allocations: 0 / 487.6 MB, free: 9.359 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001914/0.1312, allocations: 0.6919 MB / 488.3 MB, free: 8.617 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.1313, allocations: 8.031 kB / 488.3 MB, free: 8.609 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009141/0.1322, allocations: 91.28 kB / 488.4 MB, free: 8.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001091/0.1333, allocations: 394.1 kB / 488.8 MB, free: 8.094 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.416e-05/0.1334, allocations: 36.92 kB / 488.8 MB, free: 8.059 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002027/0.1336, allocations: 43.98 kB / 488.9 MB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001641/0.1353, allocations: 0.6648 MB / 489.6 MB, free: 7.312 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.702e-05/0.1354, allocations: 15.89 kB / 489.6 MB, free: 7.297 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.216e-05/0.1355, allocations: 16 kB / 489.6 MB, free: 7.281 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003212/0.1358, allocations: 52.95 kB / 489.6 MB, free: 7.227 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00176/0.1376, allocations: 0.6596 MB / 490.3 MB, free: 6.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006043/0.1436, allocations: 2.517 MB / 492.8 MB, free: 3.918 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009254/0.1446, allocations: 329.3 kB / 493.1 MB, free: 3.578 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.058e-05/0.1447, allocations: 8.312 kB / 493.1 MB, free: 3.57 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.91e-05/0.1448, allocations: 46.53 kB / 493.2 MB, free: 3.516 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 3.727e-06/0.1448, allocations: 0 / 493.2 MB, free: 3.516 MB / 330.7 MB Notification: Performance of matching and sorting (n=43): time 0.003509/0.1483, allocations: 1.491 MB / 494.7 MB, free: 1.93 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.671e-05/0.1484, allocations: 85.23 kB / 494.8 MB, free: 1.828 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004791/0.1489, allocations: 304.3 kB / 495.1 MB, free: 1.516 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.729e-05/0.149, allocations: 33.7 kB / 495.1 MB, free: 1.477 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.1492, allocations: 314 kB / 495.4 MB, free: 1.168 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001749/0.1494, allocations: 137.9 kB / 495.5 MB, free: 1.031 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.725e-05/0.1495, allocations: 12 kB / 495.5 MB, free: 1.02 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.1496, allocations: 334.8 kB / 495.9 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004892/0.1501, allocations: 193 kB / 496.1 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006683/0.1508, allocations: 361.2 kB / 496.4 MB, free: 76 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006681/0.1515, allocations: 265.1 kB / 496.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.1515, allocations: 0 / 496.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001531/0.1531, allocations: 0.6068 MB / 497.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.111e-05/0.1531, allocations: 8.688 kB / 497.3 MB, free: 15.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.1532, allocations: 4 kB / 497.3 MB, free: 15.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.359e-05/0.1532, allocations: 19.94 kB / 497.3 MB, free: 15.17 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008781/0.1541, allocations: 119.8 kB / 497.4 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.1e-05/0.1541, allocations: 8 kB / 497.4 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004388/0.1546, allocations: 19.98 kB / 497.5 MB, free: 15.03 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.1547, allocations: 27.94 kB / 497.5 MB, free: 15 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (57): * Single equations (assignments): 55 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003968/0.1551, allocations: 218.6 kB / 497.7 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001394/0.1553, allocations: 35.62 kB / 497.7 MB, free: 14.74 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/0.1565, allocations: 0.4963 MB / 498.2 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.833e-05/0.1566, allocations: 8 kB / 498.2 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.1566, allocations: 7.938 kB / 498.2 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.1567, allocations: 3.984 kB / 498.2 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0029/0.1596, allocations: 1.089 MB / 499.3 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.1596, allocations: 0 / 499.3 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007309/0.1604, allocations: 75.88 kB / 499.4 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.157e-05/0.1604, allocations: 4 kB / 499.4 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.154e-05/0.1605, allocations: 12 kB / 499.4 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.1605, allocations: 0 / 499.4 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.068e-06/0.1605, allocations: 11.89 kB / 499.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001851/0.1623, allocations: 0.8545 MB / 0.4886 GB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001636/0.1626, allocations: 108.7 kB / 0.4887 GB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.767e-05/0.1627, allocations: 12 kB / 0.4887 GB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004057/0.1631, allocations: 23.97 kB / 0.4887 GB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.594e-05/0.1632, allocations: 15.92 kB / 0.4887 GB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.881e-05/0.1632, allocations: 15.98 kB / 0.4887 GB, free: 11.87 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003366/0.1636, allocations: 207.1 kB / 0.4889 GB, free: 11.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1636, allocations: 0 / 0.4889 GB, free: 11.67 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007324/0.1643, allocations: 112 kB / 0.489 GB, free: 11.56 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * 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 (33): * Single equations (assignments): 30 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002679/0.1646, allocations: 119.2 kB / 0.4891 GB, free: 11.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001194/0.1658, allocations: 492.4 kB / 0.4896 GB, free: 10.95 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1659, allocations: 0 / 0.4896 GB, free: 10.95 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005064/0.1664, allocations: 221.2 kB / 0.4898 GB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006594/0.1671, allocations: 65.19 kB / 0.4899 GB, free: 10.67 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002903/0.17, allocations: 1.41 MB / 0.4913 GB, free: 9.215 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006851/0.1707, allocations: 0.8788 MB / 0.4921 GB, free: 8.309 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/0.171, allocations: 39.44 kB / 0.4922 GB, free: 8.27 MB / 346.7 MB Notification: Performance of SimCode: time 1.263e-06/0.171, allocations: 0 / 0.4922 GB, free: 8.27 MB / 346.7 MB Notification: Performance of Templates: time 0.01431/0.1853, allocations: 5.442 MB / 0.4975 GB, free: 2.82 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.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.Introductory.ReferenceSynchronCalcHelperMain.o OMCppPowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchronCalcHelperMain.cpp\nIn file included from OMCppPowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchronCalcHelperMain.cpp:28:\n./OMCppPowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchronFunctions.cpp:85:19: error: use of undeclared identifier \'_omcQ_24i1_\'\n switch (_omcQ_24i1_) { /* ASUB */\n ^\n./OMCppPowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchronFunctions.cpp:144:19: error: use of undeclared identifier \'_omcQ_24i1_\'\n switch (_omcQ_24i1_) { /* ASUB */\n ^\n2 errors generated.\n: recipe for target \'OMCppPowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchronCalcHelperMain.o\' failed\nmake: *** [OMCppPowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchronCalcHelperMain.o] Error 1\n'