Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.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) 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(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.plug_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors") translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.plug_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002097/0.002097, allocations: 178.9 kB / 13.65 MB, free: 1.66 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.975/1.975, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.001083/0.001083, allocations: 93.97 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.042e-05/3.051e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08884/0.08889, allocations: 47.58 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4237/0.5127, allocations: 91.68 MB / 460.8 MB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.513, allocations: 82.95 kB / 460.9 MB, free: 1.582 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.522/2.036, allocations: 305.1 MB / 0.748 GB, free: 51.99 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.746e-06/2.036, allocations: 0 / 0.748 GB, free: 51.99 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004865/2.036, allocations: 200.9 kB / 0.7481 GB, free: 51.97 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2571 * Number of variables: 2571 Notification: Performance of Generate backend data structure: time 0.03757/2.074, allocations: 7.982 MB / 0.7559 GB, free: 49.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/2.074, allocations: 15.23 kB / 0.756 GB, free: 49.56 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03016/2.104, allocations: 3.883 MB / 0.7597 GB, free: 49.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01679/2.121, allocations: 5.386 MB / 0.765 GB, free: 48.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001223/2.122, allocations: 0.6748 MB / 0.7657 GB, free: 48.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004278/2.126, allocations: 0.8596 MB / 0.7665 GB, free: 48.2 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04851/2.175, allocations: 15.19 MB / 0.7813 GB, free: 47.08 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004673/2.175, allocations: 7.375 kB / 0.7813 GB, free: 47.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003889/2.179, allocations: 385.9 kB / 0.7817 GB, free: 46.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008999/2.18, allocations: 0.5812 MB / 0.7823 GB, free: 46.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03791/2.218, allocations: 12.75 MB / 0.7947 GB, free: 41.58 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1185/2.337, allocations: 47.8 MB / 0.8414 GB, free: 5.012 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02142/2.358, allocations: 9.65 MB / 0.8508 GB, free: 12.28 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01734/2.376, allocations: 6.586 MB / 0.8573 GB, free: 6.277 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3907/2.766, allocations: 20.98 MB / 0.8778 GB, free: 62.65 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.157e-05/2.766, allocations: 91.75 kB / 0.8778 GB, free: 62.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=711): time 1.209e-05/2.766, allocations: 3.438 kB / 0.8778 GB, free: 62.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=711): time 0.03446/2.801, allocations: 11.54 MB / 0.8891 GB, free: 62.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/2.801, allocations: 114.3 kB / 0.8892 GB, free: 62.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003846/2.805, allocations: 1.728 MB / 0.8909 GB, free: 62.11 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001586/2.807, allocations: 110.4 kB / 0.891 GB, free: 62.08 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002125/2.809, allocations: 3.009 MB / 0.894 GB, free: 60.86 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004158/2.813, allocations: 2.34 MB / 0.8962 GB, free: 59.43 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001425/2.814, allocations: 111.3 kB / 0.8963 GB, free: 59.43 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008309/2.815, allocations: 0.5948 MB / 0.8969 GB, free: 59.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01172/2.827, allocations: 4.583 MB / 0.9014 GB, free: 59.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01344/2.841, allocations: 5.803 MB / 0.9071 GB, free: 57.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01423/2.855, allocations: 5.568 MB / 0.9125 GB, free: 57.78 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.974e-05/2.855, allocations: 7.562 kB / 0.9125 GB, free: 57.78 MB / 442.7 MB Notification: Performance of matching and sorting (n=897) (initialization): time 0.03706/2.892, allocations: 13.02 MB / 0.9252 GB, free: 54.76 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.177e-05/2.892, allocations: 21.34 kB / 0.9252 GB, free: 54.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.875e-05/2.892, allocations: 30.41 kB / 0.9253 GB, free: 54.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01044/2.903, allocations: 3.698 MB / 0.9289 GB, free: 53.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008203/2.911, allocations: 1.03 MB / 0.9299 GB, free: 53.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01445/2.925, allocations: 9.174 MB / 0.9389 GB, free: 48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006674/2.932, allocations: 0.7107 MB / 0.9395 GB, free: 47.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001989/2.934, allocations: 271 kB / 0.9398 GB, free: 47.54 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 143 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (570): * Single equations (assignments): 479 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 85 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of prepare postOptimizeDAE: time 0.003107/2.937, allocations: 413.8 kB / 0.9402 GB, free: 47.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002296/2.94, allocations: 360.7 kB / 0.9405 GB, free: 47.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03608/2.976, allocations: 12.89 MB / 0.9531 GB, free: 41.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02892/3.005, allocations: 11.48 MB / 0.9643 GB, free: 37.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.197e-05/3.005, allocations: 3.609 kB / 0.9644 GB, free: 37.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001038/3.005, allocations: 26.34 kB / 0.9644 GB, free: 37.04 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06505/3.07, allocations: 24.41 MB / 0.9882 GB, free: 19.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.867e-05/3.07, allocations: 0 / 0.9882 GB, free: 19.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006322/3.077, allocations: 0.7055 MB / 0.9889 GB, free: 18.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009879/3.086, allocations: 3.647 MB / 0.9925 GB, free: 15.52 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001634/3.088, allocations: 144.9 kB / 0.9926 GB, free: 15.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01369/3.102, allocations: 9.116 MB / 1.002 GB, free: 6.988 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/3.102, allocations: 0 / 1.002 GB, free: 6.988 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0602/3.162, allocations: 19.5 MB / 1.021 GB, free: 7.848 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005691/3.168, allocations: 1.495 MB / 1.022 GB, free: 6.48 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002181/3.17, allocations: 88 kB / 1.022 GB, free: 6.395 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005041/3.175, allocations: 254.6 kB / 1.022 GB, free: 6.219 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002716/3.178, allocations: 0.5293 MB / 1.023 GB, free: 5.879 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001707/3.18, allocations: 178.4 kB / 1.023 GB, free: 5.723 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003467/3.183, allocations: 1.298 MB / 1.024 GB, free: 4.59 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.495e-06/3.183, allocations: 3.844 kB / 1.024 GB, free: 4.59 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01057/3.194, allocations: 2.158 MB / 1.026 GB, free: 2.434 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (currentQuasiRMSSensor.currentSensor[1].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (403): * Single equations (assignments): 312 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 85 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.002192/3.196, allocations: 310.4 kB / 1.027 GB, free: 2.195 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.3733/3.569, allocations: 11.52 MB / 1.038 GB, free: 77.98 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/3.57, allocations: 0 / 1.038 GB, free: 77.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02551/3.595, allocations: 5.548 MB / 1.043 GB, free: 77.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009028/3.604, allocations: 0.6069 MB / 1.044 GB, free: 77.88 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07014/3.674, allocations: 16.69 MB / 1.06 GB, free: 75.63 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01273/3.687, allocations: 5.984 MB / 1.066 GB, free: 74.79 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002586/3.69, allocations: 287.5 kB / 1.066 GB, free: 74.78 MB / 458.7 MB Notification: Performance of SimCode: time 1.864e-06/3.69, allocations: 0 / 1.066 GB, free: 74.78 MB / 458.7 MB Notification: Performance of Templates: time 1.258/4.948, allocations: 395.5 MB / 1.453 GB, free: 93.94 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensors.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=2 -DSUNDIALS_MINOR_VERSION=6 -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 OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsFunctions.cpp:204:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp353 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsFunctions.cpp:204:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp353 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.TestSensorsCalcHelperMain.o] Error 1\n'