Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=400000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor") Notification: Performance of loadModel(Modelica): time 1.876/1.876, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003482/0.0003482, allocations: 8 kB / 264.5 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09804/0.09841, allocations: 44.5 MB / 309 MB, free: 1.031 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6434/0.7418, allocations: 145.1 MB / 454.1 MB, free: 10.88 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000562/0.7425, allocations: 112.4 kB / 454.2 MB, free: 10.82 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$dutyCycle.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 1.821/2.563, allocations: 358 MB / 0.7932 GB, free: 50.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.943e-06/2.564, allocations: 0 / 0.7932 GB, free: 50.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001046/2.565, allocations: 254.7 kB / 0.7935 GB, free: 50.08 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3076 * Number of variables: 3076 Notification: Performance of Generate backend data structure: time 0.05343/2.618, allocations: 11.19 MB / 0.8044 GB, free: 44.47 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/2.618, allocations: 12.03 kB / 0.8044 GB, free: 44.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04542/2.664, allocations: 5.428 MB / 0.8097 GB, free: 40.37 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03345/2.697, allocations: 9.49 MB / 0.819 GB, free: 30.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001305/2.698, allocations: 0.8105 MB / 0.8198 GB, free: 30.01 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005804/2.704, allocations: 1.07 MB / 0.8208 GB, free: 28.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06451/2.769, allocations: 18.22 MB / 0.8386 GB, free: 10.37 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007274/2.77, allocations: 19.89 kB / 0.8386 GB, free: 10.35 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005061/2.775, allocations: 467.9 kB / 0.8391 GB, free: 9.895 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001425/2.776, allocations: 0.741 MB / 0.8398 GB, free: 9.152 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4198/3.196, allocations: 16.83 MB / 0.8562 GB, free: 45.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1585/3.355, allocations: 58.11 MB / 0.913 GB, free: 32.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03929/3.394, allocations: 26.17 MB / 0.9386 GB, free: 12.53 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06515/3.459, allocations: 22.55 MB / 0.9606 GB, free: 1.301 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01893/3.478, allocations: 5.705 MB / 0.9661 GB, free: 15.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=706): time 1.82e-05/3.478, allocations: 1.5 kB / 0.9661 GB, free: 15.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=724): time 0.2059/3.684, allocations: 44.94 MB / 1.01 GB, free: 7.797 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003397/3.685, allocations: 427.8 kB / 1.01 GB, free: 7.293 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01369/3.698, allocations: 3.935 MB / 1.014 GB, free: 3.938 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001835/3.7, allocations: 129.7 kB / 1.014 GB, free: 3.805 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005775/3.706, allocations: 4.071 MB / 1.018 GB, free: 128 kB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.4233/4.129, allocations: 2.418 MB / 1.021 GB, free: 77.85 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002162/4.131, allocations: 135.8 kB / 1.021 GB, free: 77.85 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001082/4.133, allocations: 0.6056 MB / 1.021 GB, free: 77.52 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01444/4.147, allocations: 4.502 MB / 1.026 GB, free: 77.51 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01752/4.165, allocations: 6.239 MB / 1.032 GB, free: 75.75 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01749/4.182, allocations: 5.553 MB / 1.037 GB, free: 75.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000128/4.182, allocations: 13 kB / 1.037 GB, free: 75.63 MB / 458.7 MB Notification: Performance of matching and sorting (n=952) (initialization): time 0.04134/4.224, allocations: 13.44 MB / 1.051 GB, free: 75.07 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001151/4.224, allocations: 55.28 kB / 1.051 GB, free: 75.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001353/4.224, allocations: 44 kB / 1.051 GB, free: 75.04 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01445/4.238, allocations: 3.866 MB / 1.054 GB, free: 74.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01091/4.249, allocations: 1.315 MB / 1.056 GB, free: 74.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02721/4.277, allocations: 16.77 MB / 1.072 GB, free: 67.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009346/4.286, allocations: 370 kB / 1.072 GB, free: 67.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002292/4.288, allocations: 303.5 kB / 1.073 GB, free: 67.06 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 200 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (693): * Single equations (assignments): 651 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 4 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of prepare postOptimizeDAE: time 0.01267/4.301, allocations: 3.946 MB / 1.077 GB, free: 66.95 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002023/4.303, allocations: 0.5431 MB / 1.077 GB, free: 66.66 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04109/4.344, allocations: 13.62 MB / 1.09 GB, free: 61.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002702/4.345, allocations: 157.5 kB / 1.091 GB, free: 61.13 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.699e-05/4.345, allocations: 7.875 kB / 1.091 GB, free: 61.13 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001923/4.345, allocations: 30.52 kB / 1.091 GB, free: 61.13 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08171/4.427, allocations: 27.09 MB / 1.117 GB, free: 48.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.063e-05/4.427, allocations: 1.938 kB / 1.117 GB, free: 48.83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007966/4.435, allocations: 0.901 MB / 1.118 GB, free: 48.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01344/4.448, allocations: 3.998 MB / 1.122 GB, free: 47.61 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001655/4.45, allocations: 167.3 kB / 1.122 GB, free: 47.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02902/4.479, allocations: 21 MB / 1.142 GB, free: 30.79 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/4.479, allocations: 5.031 kB / 1.142 GB, free: 30.78 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05257/4.532, allocations: 19.86 MB / 1.162 GB, free: 13.11 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005803/4.537, allocations: 1.669 MB / 1.164 GB, free: 11.61 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002216/4.54, allocations: 125.3 kB / 1.164 GB, free: 11.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006256/4.546, allocations: 300.8 kB / 1.164 GB, free: 11.27 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001846/4.548, allocations: 0.5153 MB / 1.164 GB, free: 10.94 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007237/4.549, allocations: 198 kB / 1.165 GB, free: 10.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005926/4.555, allocations: 2.667 MB / 1.167 GB, free: 8.52 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.51e-07/4.555, allocations: 2.188 kB / 1.167 GB, free: 8.52 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01093/4.566, allocations: 2.037 MB / 1.169 GB, free: 6.504 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,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,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (486): * Single equations (assignments): 442 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 3,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of Backend phase and start with SimCode phase: time 0.00332/4.569, allocations: 0.8595 MB / 1.17 GB, free: 5.949 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.04848/4.617, allocations: 12.85 MB / 1.183 GB, free: 13.84 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/4.617, allocations: 8.625 kB / 1.183 GB, free: 13.83 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02113/4.639, allocations: 6.75 MB / 1.189 GB, free: 7.836 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0108/4.649, allocations: 1.196 MB / 1.19 GB, free: 6.891 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4506/5.1, allocations: 27.59 MB / 1.217 GB, free: 78.14 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01761/5.118, allocations: 6.982 MB / 1.224 GB, free: 77.15 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003641/5.121, allocations: 451.3 kB / 1.225 GB, free: 77.15 MB / 474.7 MB Notification: Performance of SimCode: time 2.324e-06/5.121, allocations: 0 / 1.225 GB, free: 77.15 MB / 474.7 MB Notification: Performance of Templates: time 3.786/8.907, allocations: 0.9598 GB / 2.184 GB, free: 49.73 MB / 0.4948 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorFunctions.cpp:578:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp236 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorFunctions.cpp:578:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp236 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0)));\n ^\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp:29:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorInitialize.cpp:3053:43: warning: magnitude of floating-point constant too large for type \'double\'; maximum is 1.7976931348623157E+308 [-Wliteral-range]\n if (_dutyCycle_P_nextTimeEventScaled_ < 1.797693134862316e+308) {\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorInitialize.cpp:3056:14: warning: magnitude of floating-point constant too large for type \'double\'; maximum is 1.7976931348623157E+308 [-Wliteral-range]\n tmp305 = 1.797693134862316e+308;\n ^\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp:33:\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.cpp:534:45: warning: magnitude of floating-point constant too large for type \'double\'; maximum is 1.7976931348623157E+308 [-Wliteral-range]\n if (_dutyCycle_P_nextTimeEventScaled_ < 1.797693134862316e+308) {\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.cpp:537:14: warning: magnitude of floating-point constant too large for type \'double\'; maximum is 1.7976931348623157E+308 [-Wliteral-range]\n tmp7 = 1.797693134862316e+308;\n ^\n4 warnings and 2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.o] Error 1\n'