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_Conveyor.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_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,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|mass.s|mass.v|massQS.s|massQS.v|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,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|mass.s|mass.v|massQS.s|massQS.v|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001515/0.001515, 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 2.043/2.043, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.0013/0.0013, allocations: 92.42 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004292/0.000429, allocations: 12 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.356, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5477/0.9037, allocations: 151.4 MB / 0.5137 GB, free: 65.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003228/0.9041, allocations: 106 kB / 0.5138 GB, free: 65.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.747/2.651, allocations: 357.4 MB / 0.8628 GB, free: 35.32 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.974e-06/2.651, allocations: 0 / 0.8628 GB, free: 35.32 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000976/2.652, allocations: 254.9 kB / 0.8631 GB, free: 35.28 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: 3076 * Number of variables: 3076 Notification: Performance of Generate backend data structure: time 0.05329/2.705, allocations: 11.14 MB / 0.8739 GB, free: 31.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/2.705, allocations: 7.75 kB / 0.874 GB, free: 31.57 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04616/2.751, allocations: 5.436 MB / 0.8793 GB, free: 30.94 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03126/2.783, allocations: 9.515 MB / 0.8886 GB, free: 29.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001225/2.784, allocations: 0.8073 MB / 0.8893 GB, free: 29.78 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005308/2.789, allocations: 1.063 MB / 0.8904 GB, free: 29.77 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06257/2.852, allocations: 18.13 MB / 0.9081 GB, free: 28.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008221/2.853, allocations: 19.25 kB / 0.9081 GB, free: 28.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005295/2.858, allocations: 460.7 kB / 0.9085 GB, free: 28.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00125/2.859, allocations: 0.7442 MB / 0.9093 GB, free: 28.49 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05356/2.913, allocations: 16.83 MB / 0.9257 GB, free: 22.71 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.537/3.45, allocations: 58.14 MB / 0.9825 GB, free: 40.02 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03653/3.487, allocations: 26.18 MB / 1.008 GB, free: 24.48 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06852/3.555, allocations: 22.5 MB / 1.03 GB, free: 23.57 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01568/3.571, allocations: 5.533 MB / 1.035 GB, free: 23.28 MB / 458.7 MB Notification: Performance of pre-optimization done (n=706): time 1.544e-05/3.571, allocations: 3.219 kB / 1.035 GB, free: 23.28 MB / 458.7 MB Notification: Performance of matching and sorting (n=724): time 0.1529/3.724, allocations: 43.77 MB / 1.078 GB, free: 14.84 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001721/3.724, allocations: 433.3 kB / 1.079 GB, free: 14.39 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008603/3.733, allocations: 3.507 MB / 1.082 GB, free: 29.04 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00163/3.735, allocations: 130.7 kB / 1.082 GB, free: 28.93 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004551/3.739, allocations: 4.072 MB / 1.086 GB, free: 25.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003891/3.743, allocations: 2.415 MB / 1.088 GB, free: 23.93 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009922/3.744, allocations: 135.5 kB / 1.089 GB, free: 23.83 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007366/3.745, allocations: 0.6039 MB / 1.089 GB, free: 23.39 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01163/3.756, allocations: 4.486 MB / 1.094 GB, free: 21.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01425/3.771, allocations: 6.194 MB / 1.1 GB, free: 17.68 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01386/3.785, allocations: 5.512 MB / 1.105 GB, free: 15.16 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.585e-05/3.785, allocations: 13.62 kB / 1.105 GB, free: 15.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=947) (initialization): time 0.03701/3.822, allocations: 13.36 MB / 1.118 GB, free: 9.527 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.95e-05/3.822, allocations: 25.62 kB / 1.118 GB, free: 9.527 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001233/3.822, allocations: 42.41 kB / 1.118 GB, free: 9.527 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01508/3.837, allocations: 3.855 MB / 1.122 GB, free: 6.668 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01114/3.848, allocations: 1.319 MB / 1.123 GB, free: 5.641 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03224/3.881, allocations: 16.84 MB / 1.14 GB, free: 5.766 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009367/3.89, allocations: 376.6 kB / 1.14 GB, free: 5.473 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002387/3.893, allocations: 299.6 kB / 1.14 GB, free: 5.199 MB / 490.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 (692): * Single equations (assignments): 651 * Array equations: 0 * Algorithm blocks: 0 * 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%) 13,(1,100.0%) 4} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of prepare postOptimizeDAE: time 0.01411/3.907, allocations: 3.952 MB / 1.144 GB, free: 1.848 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00339/3.91, allocations: 0.5401 MB / 1.145 GB, free: 1.305 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4492/4.359, allocations: 14.97 MB / 1.159 GB, free: 76.02 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002145/4.36, allocations: 153.9 kB / 1.159 GB, free: 76.02 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.345e-05/4.36, allocations: 8.438 kB / 1.159 GB, free: 76.02 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001627/4.36, allocations: 32.75 kB / 1.159 GB, free: 76.02 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07739/4.437, allocations: 27.09 MB / 1.186 GB, free: 74.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.077e-05/4.437, allocations: 0 / 1.186 GB, free: 74.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008039/4.445, allocations: 0.8936 MB / 1.187 GB, free: 74.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01385/4.459, allocations: 4.002 MB / 1.191 GB, free: 74.58 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001845/4.461, allocations: 163.2 kB / 1.191 GB, free: 74.58 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0299/4.491, allocations: 21.01 MB / 1.211 GB, free: 64.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/4.491, allocations: 6.812 kB / 1.211 GB, free: 64.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0522/4.543, allocations: 20.03 MB / 1.231 GB, free: 57.36 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006389/4.55, allocations: 1.658 MB / 1.233 GB, free: 56.67 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002896/4.553, allocations: 118.8 kB / 1.233 GB, free: 56.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007344/4.56, allocations: 307 kB / 1.233 GB, free: 56.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002633/4.563, allocations: 0.511 MB / 1.233 GB, free: 56.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008555/4.564, allocations: 199.7 kB / 1.234 GB, free: 56.35 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006852/4.571, allocations: 2.683 MB / 1.236 GB, free: 55.32 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.21e-07/4.571, allocations: 0 / 1.236 GB, free: 55.32 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01191/4.583, allocations: 2.028 MB / 1.238 GB, free: 55.11 MB / 490.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.00352/4.586, allocations: 0.8945 MB / 1.239 GB, free: 54.76 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0322/4.618, allocations: 11.83 MB / 1.251 GB, free: 49.82 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/4.619, allocations: 8.375 kB / 1.251 GB, free: 49.82 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0214/4.64, allocations: 6.756 MB / 1.257 GB, free: 46.71 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01151/4.651, allocations: 1.21 MB / 1.258 GB, free: 46.37 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07301/4.725, allocations: 27.1 MB / 1.285 GB, free: 31 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01431/4.739, allocations: 6.986 MB / 1.292 GB, free: 25.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003467/4.742, allocations: 453.8 kB / 1.292 GB, free: 25.32 MB / 490.7 MB Notification: Performance of SimCode: time 1.202e-06/4.742, allocations: 2.078 kB / 1.292 GB, free: 25.32 MB / 490.7 MB Notification: Performance of Templates: time 3.827/8.569, allocations: 0.9608 GB / 2.253 GB, free: 112.4 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.makefile make -j1 -f Modelica_3.2.3_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=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_ConveyorCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorFunctions.cpp:583: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.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorFunctions.cpp:583: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 ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.o] Error 1\n'