Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.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.MultiPhase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.inductor.2..i|inductor.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors") translateModel(Modelica.Electrical.MultiPhase.Examples.TestSensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.inductor.2..i|inductor.inductor.3..i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002347/0.002346, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.99/1.99, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001096/0.001095, allocations: 90.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.034e-05/3.05e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09295/0.09301, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4119/0.5049, allocations: 84.76 MB / 453.8 MB, free: 8.496 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.5053, allocations: 78.95 kB / 453.9 MB, free: 8.453 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.132/0.6373, allocations: 31.7 MB / 485.6 MB, free: 10.53 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.6373, allocations: 0 / 485.6 MB, free: 10.53 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001979/0.6375, allocations: 55.94 kB / 485.7 MB, free: 10.47 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.007493/0.6451, allocations: 1.952 MB / 487.6 MB, free: 8.465 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.6451, allocations: 12.03 kB / 487.6 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001606/0.6468, allocations: 261.2 kB / 487.9 MB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004169/0.651, allocations: 1.25 MB / 489.1 MB, free: 6.898 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002312/0.6513, allocations: 168.5 kB / 489.3 MB, free: 6.73 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008472/0.6521, allocations: 220 kB / 489.5 MB, free: 6.516 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009108/0.6613, allocations: 2.705 MB / 492.2 MB, free: 3.664 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.922e-05/0.6614, allocations: 0 / 492.2 MB, free: 3.664 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003975/0.6618, allocations: 96 kB / 492.3 MB, free: 3.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.462e-05/0.6619, allocations: 56 kB / 492.4 MB, free: 3.516 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006657/0.6686, allocations: 1.877 MB / 494.3 MB, free: 1.625 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02189/0.6905, allocations: 7.737 MB / 0.4902 GB, free: 9.668 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002095/0.6927, allocations: 1.234 MB / 0.4914 GB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001765/0.6945, allocations: 0.5907 MB / 0.492 GB, free: 7.703 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.424e-05/0.6946, allocations: 12.53 kB / 0.492 GB, free: 7.691 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.562e-05/0.6947, allocations: 43.06 kB / 0.4921 GB, free: 7.637 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 3.477e-06/0.6947, allocations: 4 kB / 0.4921 GB, free: 7.633 MB / 378.7 MB Notification: Performance of matching and sorting (n=65): time 0.005999/0.7007, allocations: 2.096 MB / 0.4941 GB, free: 5.473 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.7008, allocations: 63.97 kB / 0.4942 GB, free: 5.398 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001704/0.7025, allocations: 0.7028 MB / 0.4949 GB, free: 4.688 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001694/0.7028, allocations: 33.7 kB / 0.4949 GB, free: 4.648 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008211/0.7036, allocations: 0.9241 MB / 0.4958 GB, free: 3.711 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003391/0.704, allocations: 228.7 kB / 0.496 GB, free: 3.484 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.645e-05/0.704, allocations: 16 kB / 0.496 GB, free: 3.469 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.7042, allocations: 342.8 kB / 0.4964 GB, free: 3.125 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009307/0.7051, allocations: 349.6 kB / 0.4967 GB, free: 2.785 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.7063, allocations: 0.5665 MB / 0.4972 GB, free: 2.121 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.7074, allocations: 447 kB / 0.4977 GB, free: 1.684 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.7075, allocations: 7.938 kB / 0.4977 GB, free: 1.676 MB / 378.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002922/0.7104, allocations: 1.073 MB / 0.4987 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/0.7105, allocations: 12.09 kB / 0.4987 GB, free: 0.582 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.975e-05/0.7105, allocations: 8 kB / 0.4987 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004674/0.711, allocations: 108.8 kB / 0.4988 GB, free: 476 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.7124, allocations: 175.7 kB / 0.499 GB, free: 300 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003467/0.7159, allocations: 2.139 MB / 0.5011 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.717, allocations: 39.97 kB / 0.5011 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.7172, allocations: 36 kB / 0.5012 GB, free: 13.95 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002497/0.7174, allocations: 148.7 kB / 0.5013 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002551/0.7177, allocations: 83.08 kB / 0.5014 GB, free: 13.71 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002527/0.7203, allocations: 0.9096 MB / 0.5023 GB, free: 12.79 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.895e-05/0.7203, allocations: 8 kB / 0.5023 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.7204, allocations: 0 / 0.5023 GB, free: 12.78 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.7204, allocations: 7.984 kB / 0.5023 GB, free: 12.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008973/0.7294, allocations: 2.674 MB / 0.5049 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.409e-05/0.7294, allocations: 11.92 kB / 0.5049 GB, free: 10 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009324/0.7304, allocations: 103.9 kB / 0.505 GB, free: 9.902 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004114/0.7308, allocations: 96.78 kB / 0.5051 GB, free: 9.805 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.72e-05/0.7309, allocations: 16.12 kB / 0.5051 GB, free: 9.789 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003161/0.7341, allocations: 2.092 MB / 0.5072 GB, free: 7.559 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/0.7341, allocations: 4.031 kB / 0.5072 GB, free: 7.555 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003425/0.7376, allocations: 1.447 MB / 0.5086 GB, free: 6.043 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006552/0.7383, allocations: 224.1 kB / 0.5088 GB, free: 5.805 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001614/0.7385, allocations: 19.95 kB / 0.5088 GB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007765/0.7392, allocations: 43.95 kB / 0.5089 GB, free: 5.742 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.7395, allocations: 52.56 kB / 0.5089 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.189e-05/0.7395, allocations: 23.92 kB / 0.5089 GB, free: 5.668 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001246/0.7408, allocations: 0.5421 MB / 0.5095 GB, free: 5.129 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.815e-06/0.7408, allocations: 0 / 0.5095 GB, free: 5.129 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001668/0.7425, allocations: 315.9 kB / 0.5098 GB, free: 4.82 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004254/0.743, allocations: 139.1 kB / 0.5099 GB, free: 4.676 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002643/0.7456, allocations: 1.03 MB / 0.5109 GB, free: 3.617 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.7457, allocations: 0 / 0.5109 GB, free: 3.617 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001482/0.7472, allocations: 0.6106 MB / 0.5115 GB, free: 2.984 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/0.749, allocations: 206.9 kB / 0.5117 GB, free: 2.785 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007265/0.7563, allocations: 2.493 MB / 0.5141 GB, free: 240 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003289/0.7596, allocations: 1.715 MB / 0.5158 GB, free: 14.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006608/0.7604, allocations: 59.44 kB / 0.5159 GB, free: 14.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.753e-06/0.7604, allocations: 0 / 0.5159 GB, free: 14.43 MB / 410.7 MB Notification: Performance of Templates: time 0.322/1.082, allocations: 27.53 MB / 0.5427 GB, free: 109.7 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensors.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.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.MultiPhase.Examples.TestSensorsCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensorsCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensorsCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensorsFunctions.cpp:91:34: error: use of undeclared identifier \'D_24tmpVar12_\'; did you mean \'D_24tmpVar13_\'?\n D_24tmpVar13_ = std::cos(D_24tmpVar12_);\n ^~~~~~~~~~~~~\n D_24tmpVar13_\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensorsFunctions.cpp:68:12: note: \'D_24tmpVar13_\' declared here\n double D_24tmpVar13_;\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensorsFunctions.cpp:128:34: error: use of undeclared identifier \'D_24tmpVar15_\'; did you mean \'D_24tmpVar16_\'?\n D_24tmpVar16_ = std::sin(D_24tmpVar15_);\n ^~~~~~~~~~~~~\n D_24tmpVar16_\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensorsFunctions.cpp:105:12: note: \'D_24tmpVar16_\' declared here\n double D_24tmpVar16_;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensorsCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensorsCalcHelperMain.o] Error 1\n'