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.002347, allocations: 185.9 kB / 16.4 MB, free: 5.75 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.017/2.017, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001154/0.001153, allocations: 85.98 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003881/0.0003881, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3329/0.3333, allocations: 47.57 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1351/0.4685, allocations: 84.86 MB / 459.4 MB, free: 11.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002841/0.4688, allocations: 75.95 kB / 459.5 MB, free: 11.81 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1303/0.5991, allocations: 31.63 MB / 491.1 MB, free: 12.03 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.5992, allocations: 0 / 491.1 MB, free: 12.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001805/0.5994, allocations: 55.94 kB / 491.1 MB, free: 11.98 MB / 378.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.007748/0.6071, allocations: 2.079 MB / 493.2 MB, free: 9.836 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.6072, allocations: 16.02 kB / 493.2 MB, free: 9.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001459/0.6087, allocations: 257.2 kB / 493.5 MB, free: 9.566 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003776/0.6125, allocations: 1.25 MB / 494.7 MB, free: 8.273 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001925/0.6127, allocations: 168.5 kB / 494.9 MB, free: 8.105 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006028/0.6133, allocations: 224 kB / 495.1 MB, free: 7.887 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008206/0.6215, allocations: 2.756 MB / 497.9 MB, free: 4.984 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.575e-05/0.6217, allocations: 0 / 497.9 MB, free: 4.984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003822/0.6221, allocations: 96 kB / 498 MB, free: 4.891 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-05/0.6221, allocations: 60 kB / 498 MB, free: 4.832 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007309/0.6295, allocations: 1.954 MB / 500 MB, free: 2.863 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.295/0.9245, allocations: 7.718 MB / 0.4958 GB, free: 89.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001787/0.9264, allocations: 1.268 MB / 0.497 GB, free: 88.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.38e-05/0.9265, allocations: 7.609 kB / 0.497 GB, free: 88.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.364e-05/0.9265, allocations: 44.45 kB / 0.4971 GB, free: 88.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 3.767e-06/0.9266, allocations: 0 / 0.4971 GB, free: 88.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.006615/0.9332, allocations: 2.631 MB / 0.4997 GB, free: 87.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.9333, allocations: 57.5 kB / 0.4997 GB, free: 87.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001506/0.9348, allocations: 0.7059 MB / 0.5004 GB, free: 87.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001192/0.9349, allocations: 37.05 kB / 0.5004 GB, free: 87.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005939/0.9355, allocations: 0.9362 MB / 0.5014 GB, free: 87.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002141/0.9358, allocations: 217.6 kB / 0.5016 GB, free: 87.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.989e-05/0.9358, allocations: 15.38 kB / 0.5016 GB, free: 87.11 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.611e-05/0.936, allocations: 351 kB / 0.5019 GB, free: 86.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009985/0.937, allocations: 375.7 kB / 0.5023 GB, free: 86.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/0.9381, allocations: 0.5903 MB / 0.5028 GB, free: 86.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.9392, allocations: 475.6 kB / 0.5033 GB, free: 86.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.196e-06/0.9392, allocations: 7.469 kB / 0.5033 GB, free: 86.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002573/0.9418, allocations: 1.104 MB / 0.5044 GB, free: 86.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.9418, allocations: 7.219 kB / 0.5044 GB, free: 86.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.108e-05/0.9419, allocations: 10.12 kB / 0.5044 GB, free: 86.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003457/0.9422, allocations: 87.05 kB / 0.5045 GB, free: 86.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.9436, allocations: 184.4 kB / 0.5047 GB, free: 86.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00229/0.9459, allocations: 1.951 MB / 0.5066 GB, free: 85.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.9469, allocations: 41.03 kB / 0.5066 GB, free: 85.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001044/0.947, allocations: 31 kB / 0.5066 GB, free: 85.12 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 88 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001455/0.9485, allocations: 0.6548 MB / 0.5073 GB, free: 85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003321/0.9489, allocations: 87.58 kB / 0.5074 GB, free: 84.96 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/0.9512, allocations: 0.9311 MB / 0.5083 GB, free: 84.88 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.9513, allocations: 4.625 kB / 0.5083 GB, free: 84.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.9513, allocations: 3.094 kB / 0.5083 GB, free: 84.88 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.9513, allocations: 14.95 kB / 0.5083 GB, free: 84.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006974/0.9583, allocations: 2.66 MB / 0.5109 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.118e-05/0.9584, allocations: 0 / 0.5109 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009057/0.9593, allocations: 117 kB / 0.511 GB, free: 84.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002893/0.9596, allocations: 80.8 kB / 0.5111 GB, free: 84.49 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.947e-05/0.9597, allocations: 19.39 kB / 0.5111 GB, free: 84.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002089/0.9618, allocations: 1.911 MB / 0.513 GB, free: 82.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.9618, allocations: 0 / 0.513 GB, free: 82.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003062/0.9649, allocations: 1.454 MB / 0.5144 GB, free: 82.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004714/0.9654, allocations: 229.1 kB / 0.5146 GB, free: 82.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.9655, allocations: 14.69 kB / 0.5146 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006999/0.9662, allocations: 49.78 kB / 0.5147 GB, free: 82.08 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.9664, allocations: 42.92 kB / 0.5147 GB, free: 82.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.929e-05/0.9665, allocations: 19.23 kB / 0.5147 GB, free: 82.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009902/0.9675, allocations: 0.5493 MB / 0.5153 GB, free: 81.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.9675, allocations: 0 / 0.5153 GB, free: 81.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001504/0.969, allocations: 311.3 kB / 0.5156 GB, free: 81.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 53 * 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%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003307/0.9694, allocations: 147.6 kB / 0.5157 GB, free: 81.72 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002437/0.9718, allocations: 1.065 MB / 0.5167 GB, free: 81.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.9718, allocations: 4 kB / 0.5167 GB, free: 81.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.9731, allocations: 0.5961 MB / 0.5173 GB, free: 80.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001694/0.9748, allocations: 197 kB / 0.5175 GB, free: 80.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007381/0.9822, allocations: 3.96 MB / 0.5214 GB, free: 78.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001727/0.984, allocations: 1.72 MB / 0.5231 GB, free: 77.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000453/0.9845, allocations: 60.91 kB / 0.5231 GB, free: 77.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.563e-06/0.9845, allocations: 0 / 0.5231 GB, free: 77.7 MB / 378.7 MB Notification: Performance of Templates: time 0.04733/1.032, allocations: 27.58 MB / 0.55 GB, free: 60.01 MB / 378.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:38: error: use of undeclared identifier \'_omcQ_24tmpVar12_\'; did you mean \'_omcQ_24tmpVar13_\'?\n _omcQ_24tmpVar13_ = std::cos(_omcQ_24tmpVar12_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar13_\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensorsFunctions.cpp:68:12: note: \'_omcQ_24tmpVar13_\' declared here\n double _omcQ_24tmpVar13_;\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensorsFunctions.cpp:128:38: error: use of undeclared identifier \'_omcQ_24tmpVar15_\'; did you mean \'_omcQ_24tmpVar16_\'?\n _omcQ_24tmpVar16_ = std::sin(_omcQ_24tmpVar15_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar16_\n./OMCppModelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.TestSensorsFunctions.cpp:105:12: note: \'_omcQ_24tmpVar16_\' declared here\n double _omcQ_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'