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.003195/0.003195, allocations: 181.7 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 2.133/2.133, 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.001066/0.001066, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.026e-05/3.042e-05, allocations: 4 kB / 321.5 MB, free: 17.81 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1019, allocations: 47.58 MB / 369.1 MB, free: 2.168 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5301/0.632, allocations: 153.1 MB / 0.51 GB, free: 5.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003361/0.6324, allocations: 99.94 kB / 0.5101 GB, free: 4.965 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.296/2.929, allocations: 466 MB / 0.9652 GB, free: 36.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.903e-06/2.929, allocations: 0 / 0.9652 GB, free: 36.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001197/2.93, allocations: 329.9 kB / 0.9655 GB, free: 36.4 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.07452/3.005, allocations: 13.57 MB / 0.9788 GB, free: 27.33 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/3.005, allocations: 8.031 kB / 0.9788 GB, free: 27.32 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05508/3.06, allocations: 6.71 MB / 0.9853 GB, free: 21.03 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04267/3.103, allocations: 11.45 MB / 0.9965 GB, free: 9.512 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002123/3.105, allocations: 1.039 MB / 0.9975 GB, free: 8.469 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008083/3.113, allocations: 1.359 MB / 0.9988 GB, free: 7.109 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4814/3.594, allocations: 23.8 MB / 1.022 GB, free: 40.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00104/3.596, allocations: 17.14 kB / 1.022 GB, free: 40.1 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00707/3.603, allocations: 0.5824 MB / 1.023 GB, free: 40.1 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002163/3.605, allocations: 0.9357 MB / 1.024 GB, free: 40.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07145/3.676, allocations: 21.62 MB / 1.045 GB, free: 39.94 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2119/3.888, allocations: 77.4 MB / 1.12 GB, free: 13.38 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0494/3.938, allocations: 30.55 MB / 1.15 GB, free: 7.395 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02922/3.967, allocations: 10.65 MB / 1.161 GB, free: 2.848 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1079/4.075, allocations: 33.51 MB / 1.193 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001594/4.075, allocations: 126.7 kB / 1.193 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=1011): time 1.444e-05/4.075, allocations: 0 / 1.193 GB, free: 14.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1019): time 0.5371/4.612, allocations: 37.61 MB / 1.23 GB, free: 88.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001198/4.613, allocations: 168.1 kB / 1.23 GB, free: 88.39 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0136/4.626, allocations: 4.291 MB / 1.234 GB, free: 88.05 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002553/4.629, allocations: 163.8 kB / 1.235 GB, free: 88.02 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004544/4.633, allocations: 4.906 MB / 1.239 GB, free: 85.54 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.006139/4.64, allocations: 3.345 MB / 1.243 GB, free: 83.36 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002671/4.642, allocations: 175.3 kB / 1.243 GB, free: 83.36 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001406/4.644, allocations: 0.71 MB / 1.244 GB, free: 83.02 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01811/4.662, allocations: 6.657 MB / 1.25 GB, free: 83 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02072/4.683, allocations: 8.382 MB / 1.258 GB, free: 81.31 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02141/4.704, allocations: 7.957 MB / 1.266 GB, free: 81.18 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001109/4.704, allocations: 12.41 kB / 1.266 GB, free: 81.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.06369/4.768, allocations: 20.62 MB / 1.286 GB, free: 75.98 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.125e-05/4.768, allocations: 24.31 kB / 1.286 GB, free: 75.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001374/4.768, allocations: 44.47 kB / 1.286 GB, free: 75.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03068/4.799, allocations: 8.431 MB / 1.294 GB, free: 73.47 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0119/4.811, allocations: 1.396 MB / 1.296 GB, free: 73.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05433/4.865, allocations: 27.79 MB / 1.323 GB, free: 56.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01167/4.877, allocations: 428.6 kB / 1.323 GB, free: 56.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003203/4.88, allocations: 375.8 kB / 1.324 GB, free: 56.34 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 199 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (727): * Single equations (assignments): 698 * 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%) 1,(1,100.0%) 8,(9,33.3%) 19,(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.005896/4.886, allocations: 0.5541 MB / 1.324 GB, free: 55.96 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004196/4.89, allocations: 0.6991 MB / 1.325 GB, free: 55.58 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06444/4.955, allocations: 21.01 MB / 1.345 GB, free: 43.01 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003794/4.955, allocations: 244.5 kB / 1.346 GB, free: 42.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.833e-05/4.955, allocations: 12 kB / 1.346 GB, free: 42.79 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002335/4.956, allocations: 42.98 kB / 1.346 GB, free: 42.79 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1166/5.072, allocations: 39.9 MB / 1.385 GB, free: 9.355 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001804/5.072, allocations: 6.875 kB / 1.385 GB, free: 9.352 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009383/5.082, allocations: 0.9644 MB / 1.386 GB, free: 8.613 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.435/5.517, allocations: 8.548 MB / 1.394 GB, free: 88.43 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002717/5.52, allocations: 218.7 kB / 1.394 GB, free: 88.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0623/5.582, allocations: 32.02 MB / 1.425 GB, free: 77.69 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/5.582, allocations: 9.984 kB / 1.425 GB, free: 77.68 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08353/5.666, allocations: 31.28 MB / 1.456 GB, free: 75.27 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00934/5.675, allocations: 2.357 MB / 1.458 GB, free: 74.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004059/5.679, allocations: 159.3 kB / 1.458 GB, free: 74.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009925/5.689, allocations: 390.1 kB / 1.459 GB, free: 74.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004142/5.693, allocations: 0.792 MB / 1.46 GB, free: 73.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002041/5.695, allocations: 265.4 kB / 1.46 GB, free: 73.87 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008959/5.704, allocations: 3.267 MB / 1.463 GB, free: 72.63 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.92e-07/5.704, allocations: 0 / 1.463 GB, free: 72.63 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01654/5.721, allocations: 2.645 MB / 1.466 GB, free: 72.35 MB / 0.4948 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (510): * Single equations (assignments): 480 * 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%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(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.003907/5.725, allocations: 0.7371 MB / 1.466 GB, free: 72.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.04964/5.775, allocations: 17.41 MB / 1.483 GB, free: 64.94 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/5.775, allocations: 1.625 kB / 1.483 GB, free: 64.94 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.03147/5.806, allocations: 10.12 MB / 1.493 GB, free: 60.49 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01525/5.821, allocations: 1.578 MB / 1.495 GB, free: 60.09 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0852/5.907, allocations: 26.88 MB / 1.521 GB, free: 38.04 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02162/5.928, allocations: 9.23 MB / 1.53 GB, free: 31.06 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004317/5.933, allocations: 0.4906 MB / 1.531 GB, free: 30.6 MB / 0.4948 GB Notification: Performance of SimCode: time 2.184e-06/5.933, allocations: 0 / 1.531 GB, free: 30.6 MB / 0.4948 GB Notification: Performance of Templates: time 4.259/10.19, allocations: 1.044 GB / 2.575 GB, free: 119.2 MB / 0.5417 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'