Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Vtr|Vqs",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0015/0.001499, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001138/0.001138, allocations: 97.77 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.693e-05/2.719e-05, allocations: 4 kB / 314.8 MB, free: 9.129 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.35, allocations: 47.57 MB / 362.4 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2504/0.6004, allocations: 148.3 MB / 0.4987 GB, free: 1.879 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003371/0.6008, allocations: 104 kB / 0.4988 GB, free: 1.781 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.31/1.911, allocations: 229.3 MB / 0.7227 GB, free: 52.86 MB / 411.1 MB Notification: Performance of FrontEnd: time 3.457e-06/1.911, allocations: 7.609 kB / 0.7227 GB, free: 52.86 MB / 411.1 MB Notification: Performance of Transformations before backend: time 0.0005995/1.912, allocations: 153.6 kB / 0.7228 GB, free: 52.85 MB / 411.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03219/1.944, allocations: 6.783 MB / 0.7295 GB, free: 50.55 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/1.944, allocations: 15.39 kB / 0.7295 GB, free: 50.55 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03108/1.975, allocations: 3.654 MB / 0.733 GB, free: 50.13 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.021/1.996, allocations: 5.915 MB / 0.7388 GB, free: 49.12 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000593/1.997, allocations: 233.2 kB / 0.739 GB, free: 49.12 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003354/2, allocations: 423.4 kB / 0.7394 GB, free: 49.11 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02664/2.027, allocations: 9.154 MB / 0.7484 GB, free: 46.12 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03444/2.062, allocations: 10.2 MB / 0.7584 GB, free: 41.29 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004625/2.062, allocations: 12.25 kB / 0.7584 GB, free: 41.28 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002626/2.065, allocations: 7.953 kB / 0.7584 GB, free: 41.27 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007141/2.066, allocations: 496.4 kB / 0.7588 GB, free: 40.84 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09506/2.161, allocations: 37.69 MB / 0.7957 GB, free: 9.414 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02336/2.184, allocations: 18.17 MB / 0.8134 GB, free: 5.48 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01103/2.195, allocations: 4.21 MB / 0.8175 GB, free: 1.254 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.396/2.591, allocations: 14 MB / 0.8312 GB, free: 66.6 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.798e-05/2.591, allocations: 73.41 kB / 0.8313 GB, free: 66.56 MB / 427.1 MB Notification: Performance of pre-optimization done (n=399): time 8.206e-06/2.591, allocations: 3.688 kB / 0.8313 GB, free: 66.56 MB / 427.1 MB Notification: Performance of matching and sorting (n=415): time 0.05169/2.643, allocations: 16.19 MB / 0.8471 GB, free: 65.32 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.244e-05/2.643, allocations: 95.45 kB / 0.8472 GB, free: 65.26 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006101/2.649, allocations: 2.438 MB / 0.8495 GB, free: 65 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009517/2.65, allocations: 26.8 kB / 0.8496 GB, free: 64.97 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002544/2.653, allocations: 3.067 MB / 0.8526 GB, free: 63.45 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002269/2.655, allocations: 1.351 MB / 0.8539 GB, free: 62.57 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005572/2.656, allocations: 0 / 0.8539 GB, free: 62.57 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0004659/2.656, allocations: 0.5285 MB / 0.8544 GB, free: 62.25 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007445/2.664, allocations: 2.88 MB / 0.8572 GB, free: 62.23 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009315/2.673, allocations: 4.848 MB / 0.8619 GB, free: 59.82 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01261/2.686, allocations: 4.489 MB / 0.8663 GB, free: 58.33 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000125/2.686, allocations: 17.09 kB / 0.8663 GB, free: 58.33 MB / 427.1 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.02663/2.712, allocations: 9.501 MB / 0.8756 GB, free: 54.93 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.715e-05/2.713, allocations: 35.64 kB / 0.8757 GB, free: 54.93 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001463/2.713, allocations: 61.78 kB / 0.8757 GB, free: 54.93 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00736/2.72, allocations: 2.452 MB / 0.8781 GB, free: 54.24 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007806/2.728, allocations: 1.09 MB / 0.8792 GB, free: 54.21 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009474/2.738, allocations: 5.545 MB / 0.8846 GB, free: 51.21 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006792/2.744, allocations: 249.4 kB / 0.8848 GB, free: 51.18 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001567/2.746, allocations: 264.7 kB / 0.8851 GB, free: 51.14 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smpmQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 298 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 538 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {6 9,11 79} Notification: Performance of prepare postOptimizeDAE: time 0.001513/2.748, allocations: 342.7 kB / 0.8854 GB, free: 50.96 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00138/2.749, allocations: 379.9 kB / 0.8858 GB, free: 50.77 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02402/2.773, allocations: 8.411 MB / 0.894 GB, free: 47.43 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000115/2.773, allocations: 101 kB / 0.8941 GB, free: 47.39 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.46e-05/2.773, allocations: 0 / 0.8941 GB, free: 47.39 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.801e-05/2.773, allocations: 20.72 kB / 0.8941 GB, free: 47.39 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05247/2.826, allocations: 19.43 MB / 0.9131 GB, free: 38.72 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-05/2.826, allocations: 3.938 kB / 0.9131 GB, free: 38.72 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004975/2.831, allocations: 0.5607 MB / 0.9136 GB, free: 38.71 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007927/2.839, allocations: 2.413 MB / 0.916 GB, free: 37.94 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001001/2.84, allocations: 50.31 kB / 0.916 GB, free: 37.9 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01156/2.851, allocations: 7.228 MB / 0.9231 GB, free: 31.18 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002127/2.854, allocations: 1.802 MB / 0.9248 GB, free: 29.34 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03008/2.884, allocations: 13.02 MB / 0.9376 GB, free: 17.56 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004205/2.888, allocations: 1.085 MB / 0.9386 GB, free: 16.57 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001695/2.89, allocations: 5.922 kB / 0.9386 GB, free: 16.56 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00498/2.895, allocations: 182.8 kB / 0.9388 GB, free: 16.46 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001349/2.896, allocations: 313.3 kB / 0.9391 GB, free: 16.26 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005069/2.897, allocations: 126 kB / 0.9392 GB, free: 16.15 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.004013/2.901, allocations: 1.746 MB / 0.9409 GB, free: 14.59 MB / 427.1 MB Notification: Performance of sort global known variables: time 1.042e-06/2.901, allocations: 0 / 0.9409 GB, free: 14.59 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.008984/2.91, allocations: 1.197 MB / 0.9421 GB, free: 13.41 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (281): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 3,6 9,10 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.001995/2.912, allocations: 0.5219 MB / 0.9426 GB, free: 12.98 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0194/2.931, allocations: 7.227 MB / 0.9497 GB, free: 6.426 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/2.931, allocations: 0 / 0.9497 GB, free: 6.426 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01079/2.942, allocations: 3.626 MB / 0.9532 GB, free: 3.152 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007424/2.949, allocations: 0.6967 MB / 0.9539 GB, free: 2.617 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04551/2.995, allocations: 12.54 MB / 0.9661 GB, free: 8.773 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009614/3.005, allocations: 4.553 MB / 0.9706 GB, free: 5.289 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002501/3.007, allocations: 315.6 kB / 0.9709 GB, free: 5 MB / 443.1 MB Notification: Performance of SimCode: time 1.363e-06/3.007, allocations: 0 / 0.9709 GB, free: 5 MB / 443.1 MB Notification: Performance of Templates: time 1.113/4.12, allocations: 232.4 MB / 1.198 GB, free: 103.7 MB / 475.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.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/OMCompiler/build/include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:534:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp169 = 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitFunctions.cpp:534:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp169 = 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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuitCalcHelperMain.o] Error 1\n'