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.InductionMachines.IMC_YD.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.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|imc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001549/0.001549, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.998/1.998, allocations: 205.4 MB / 222.5 MB, free: 9.148 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.001201/0.001201, allocations: 89.73 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004346/0.0004348, allocations: 11.98 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.3605, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5481/0.9087, allocations: 153.2 MB / 0.5154 GB, free: 65.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003861/0.9091, allocations: 102.3 kB / 0.5155 GB, free: 65.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.012/2.921, allocations: 466.4 MB / 0.9709 GB, free: 4.898 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.126e-06/2.921, allocations: 0 / 0.9709 GB, free: 4.898 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001259/2.923, allocations: 327.7 kB / 0.9712 GB, free: 4.578 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.7847/3.707, allocations: 14.42 MB / 0.9853 GB, free: 17.85 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/3.708, allocations: 11.06 kB / 0.9853 GB, free: 17.85 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05609/3.764, allocations: 6.745 MB / 0.9919 GB, free: 17.07 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04044/3.804, allocations: 11.5 MB / 1.003 GB, free: 15.85 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002159/3.806, allocations: 1.043 MB / 1.004 GB, free: 15.82 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008101/3.814, allocations: 1.358 MB / 1.005 GB, free: 15.81 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08109/3.896, allocations: 24.11 MB / 1.029 GB, free: 14.18 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008222/3.896, allocations: 21.75 kB / 1.029 GB, free: 14.17 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005988/3.902, allocations: 0.5832 MB / 1.03 GB, free: 14.17 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00152/3.904, allocations: 0.9282 MB / 1.031 GB, free: 14.14 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06733/3.971, allocations: 22.06 MB / 1.052 GB, free: 14.01 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2089/4.18, allocations: 77.63 MB / 1.128 GB, free: 2.805 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07277/4.253, allocations: 31.89 MB / 1.159 GB, free: 7.562 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4993/4.753, allocations: 32.9 MB / 1.191 GB, free: 80.14 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001459/4.753, allocations: 127.8 kB / 1.191 GB, free: 80.09 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=1021): time 1.63e-05/4.753, allocations: 0 / 1.191 GB, free: 80.09 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1029): time 0.5485/5.301, allocations: 94.38 MB / 1.283 GB, free: 71.39 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001217/5.301, allocations: 175.8 kB / 1.284 GB, free: 71.29 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01167/5.313, allocations: 4.324 MB / 1.288 GB, free: 70.94 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.002435/5.316, allocations: 166.2 kB / 1.288 GB, free: 70.85 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.003915/5.32, allocations: 4.891 MB / 1.293 GB, free: 67.06 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.005469/5.325, allocations: 3.372 MB / 1.296 GB, free: 64.21 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002596/5.328, allocations: 176 kB / 1.296 GB, free: 64.04 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001163/5.329, allocations: 0.7068 MB / 1.297 GB, free: 63.43 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0184/5.347, allocations: 6.831 MB / 1.304 GB, free: 57.57 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02066/5.368, allocations: 8.551 MB / 1.312 GB, free: 49.54 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02144/5.39, allocations: 8.115 MB / 1.32 GB, free: 42.34 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-05/5.39, allocations: 15.56 kB / 1.32 GB, free: 42.33 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.06171/5.451, allocations: 20.98 MB / 1.34 GB, free: 24.1 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 6.4e-05/5.452, allocations: 24 kB / 1.34 GB, free: 24.08 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/5.452, allocations: 44 kB / 1.34 GB, free: 24.04 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.4317/5.883, allocations: 8.52 MB / 1.349 GB, free: 80 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01165/5.895, allocations: 1.41 MB / 1.35 GB, free: 80 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05815/5.953, allocations: 28.13 MB / 1.378 GB, free: 71.87 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01112/5.964, allocations: 436.4 kB / 1.378 GB, free: 71.86 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003255/5.968, allocations: 373.9 kB / 1.378 GB, free: 71.86 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 197 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (735): * Single equations (assignments): 706 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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: 5 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of prepare postOptimizeDAE: time 0.01823/5.986, allocations: 5.36 MB / 1.384 GB, free: 71.74 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003864/5.99, allocations: 0.6956 MB / 1.384 GB, free: 71.74 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06447/6.054, allocations: 21.44 MB / 1.405 GB, free: 71.06 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004047/6.055, allocations: 245.6 kB / 1.405 GB, free: 71.06 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.319e-05/6.055, allocations: 10.28 kB / 1.405 GB, free: 71.06 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000228/6.055, allocations: 48.92 kB / 1.406 GB, free: 71.06 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1165/6.172, allocations: 40.44 MB / 1.445 GB, free: 58.91 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002006/6.172, allocations: 7.031 kB / 1.445 GB, free: 58.91 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009202/6.181, allocations: 0.9886 MB / 1.446 GB, free: 58.88 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03195/6.213, allocations: 8.611 MB / 1.454 GB, free: 56.29 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003079/6.216, allocations: 223.2 kB / 1.455 GB, free: 56.16 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06288/6.279, allocations: 32.5 MB / 1.486 GB, free: 34.05 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/6.279, allocations: 8.969 kB / 1.486 GB, free: 34.04 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08759/6.367, allocations: 31.93 MB / 1.518 GB, free: 6.16 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009625/6.377, allocations: 2.368 MB / 1.52 GB, free: 4.027 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00451/6.381, allocations: 156 kB / 1.52 GB, free: 3.875 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01042/6.392, allocations: 401.5 kB / 1.52 GB, free: 3.59 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004665/6.396, allocations: 0.7956 MB / 1.521 GB, free: 3.082 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003026/6.399, allocations: 270.4 kB / 1.521 GB, free: 2.844 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009801/6.409, allocations: 3.306 MB / 1.525 GB, free: 108 kB / 0.4949 GB Notification: Performance of sort global known variables: time 8.71e-07/6.409, allocations: 0 / 1.525 GB, free: 108 kB / 0.4949 GB Notification: Performance of remove unused functions: time 0.03549/6.445, allocations: 3.859 MB / 1.528 GB, free: 0 / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (520): * Single equations (assignments): 490 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of Backend phase and start with SimCode phase: time 0.4233/6.868, allocations: 0.6152 MB / 1.529 GB, free: 76.81 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.05218/6.92, allocations: 17.8 MB / 1.546 GB, free: 75.78 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/6.921, allocations: 0 / 1.546 GB, free: 75.78 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.03462/6.955, allocations: 10.35 MB / 1.556 GB, free: 74.72 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01543/6.971, allocations: 1.577 MB / 1.558 GB, free: 74.7 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1004/7.071, allocations: 36.36 MB / 1.594 GB, free: 62.25 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02474/7.096, allocations: 9.236 MB / 1.603 GB, free: 61.14 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004544/7.101, allocations: 0.4948 MB / 1.603 GB, free: 61.14 MB / 0.4949 GB Notification: Performance of SimCode: time 2.124e-06/7.101, allocations: 0 / 1.603 GB, free: 61.14 MB / 0.4949 GB Notification: Performance of Templates: time 3.621/10.72, allocations: 1.045 GB / 2.648 GB, free: 15.37 MB / 0.5418 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDFunctions.cpp:417:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp250 = 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.InductionMachines.IMC_YDFunctions.cpp:417:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp250 = 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.InductionMachines.IMC_YDCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o] Error 1\n'