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.00225/0.00225, allocations: 181.3 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.066/2.066, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001122/0.001122, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.97e-05/3.991e-05, allocations: 4 kB / 321.5 MB, free: 17.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1138, allocations: 47.59 MB / 369.1 MB, free: 2.172 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7885/0.9024, allocations: 151.3 MB / 0.5083 GB, free: 6.777 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003936/0.9028, allocations: 99.38 kB / 0.5084 GB, free: 6.727 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.405/3.308, allocations: 357.2 MB / 0.8572 GB, free: 26 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.074e-06/3.308, allocations: 0.7812 kB / 0.8572 GB, free: 26 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.001366/3.309, allocations: 255.8 kB / 0.8574 GB, free: 26 MB / 442.8 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.05451/3.364, allocations: 10.47 MB / 0.8676 GB, free: 24.27 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/3.364, allocations: 7.094 kB / 0.8676 GB, free: 24.27 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04818/3.412, allocations: 5.403 MB / 0.8729 GB, free: 23.67 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03736/3.449, allocations: 9.456 MB / 0.8822 GB, free: 22.63 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001464/3.451, allocations: 0.8149 MB / 0.883 GB, free: 22.61 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006292/3.457, allocations: 1.07 MB / 0.884 GB, free: 22.6 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06236/3.519, allocations: 17.91 MB / 0.9015 GB, free: 21.38 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008712/3.52, allocations: 23.48 kB / 0.9015 GB, free: 21.38 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005301/3.526, allocations: 466.9 kB / 0.902 GB, free: 21.38 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001321/3.527, allocations: 0.7438 MB / 0.9027 GB, free: 21.35 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05274/3.58, allocations: 16.55 MB / 0.9188 GB, free: 21.26 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1573/3.737, allocations: 58.1 MB / 0.9756 GB, free: 15.23 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04152/3.779, allocations: 26.01 MB / 1.001 GB, free: 11.43 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02009/3.799, allocations: 7.065 MB / 1.008 GB, free: 6.516 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07605/3.875, allocations: 22.5 MB / 1.03 GB, free: 4.141 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.397/4.272, allocations: 5.442 MB / 1.035 GB, free: 71.87 MB / 490.8 MB Notification: Performance of pre-optimization done (n=696): time 2.57e-05/4.272, allocations: 3.562 kB / 1.035 GB, free: 71.87 MB / 490.8 MB Notification: Performance of matching and sorting (n=714): time 0.0975/4.37, allocations: 28.94 MB / 1.063 GB, free: 69.46 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001829/4.37, allocations: 433.1 kB / 1.064 GB, free: 69.02 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009496/4.379, allocations: 3.475 MB / 1.067 GB, free: 68.68 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001859/4.381, allocations: 126.5 kB / 1.067 GB, free: 68.65 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005179/4.387, allocations: 4.08 MB / 1.071 GB, free: 66.57 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004112/4.391, allocations: 2.396 MB / 1.074 GB, free: 65.04 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001346/4.392, allocations: 133.1 kB / 1.074 GB, free: 65.04 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0007932/4.393, allocations: 0.5991 MB / 1.074 GB, free: 64.71 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01149/4.404, allocations: 4.37 MB / 1.079 GB, free: 64.7 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01379/4.418, allocations: 6.095 MB / 1.085 GB, free: 62.92 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01396/4.432, allocations: 5.402 MB / 1.09 GB, free: 62.81 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.898e-05/4.432, allocations: 15.16 kB / 1.09 GB, free: 62.81 MB / 490.8 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.03744/4.47, allocations: 13.12 MB / 1.103 GB, free: 62.27 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.029e-05/4.47, allocations: 26.41 kB / 1.103 GB, free: 62.27 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/4.47, allocations: 53.16 kB / 1.103 GB, free: 62.27 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01369/4.484, allocations: 3.838 MB / 1.107 GB, free: 62.16 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01069/4.495, allocations: 1.304 MB / 1.108 GB, free: 62.16 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02495/4.52, allocations: 16.63 MB / 1.124 GB, free: 52.75 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009309/4.529, allocations: 372.8 kB / 1.124 GB, free: 52.64 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002327/4.531, allocations: 302.3 kB / 1.125 GB, free: 52.58 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 202 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (684): * Single equations (assignments): 643 * 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.004042/4.535, allocations: 496.6 kB / 1.125 GB, free: 52.25 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003017/4.539, allocations: 0.5385 MB / 1.126 GB, free: 51.96 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04375/4.582, allocations: 13.31 MB / 1.139 GB, free: 46.15 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000275/4.583, allocations: 154.6 kB / 1.139 GB, free: 46.08 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-05/4.583, allocations: 11.31 kB / 1.139 GB, free: 46.08 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002021/4.583, allocations: 32.61 kB / 1.139 GB, free: 46.08 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08013/4.663, allocations: 26.76 MB / 1.165 GB, free: 33.67 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001124/4.663, allocations: 2.875 kB / 1.165 GB, free: 33.67 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008118/4.671, allocations: 0.8776 MB / 1.166 GB, free: 32.99 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01385/4.685, allocations: 3.934 MB / 1.17 GB, free: 29.8 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00199/4.687, allocations: 164.3 kB / 1.17 GB, free: 29.66 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0298/4.717, allocations: 20.77 MB / 1.19 GB, free: 9.535 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.044e-06/4.717, allocations: 9.234 kB / 1.19 GB, free: 9.531 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05642/4.774, allocations: 19.74 MB / 1.209 GB, free: 7.805 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007039/4.781, allocations: 1.641 MB / 1.211 GB, free: 6.316 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003109/4.784, allocations: 123.8 kB / 1.211 GB, free: 6.199 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007722/4.792, allocations: 297.3 kB / 1.211 GB, free: 5.984 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002851/4.795, allocations: 0.5108 MB / 1.212 GB, free: 5.656 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001817/4.796, allocations: 199.2 kB / 1.212 GB, free: 5.484 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.008117/4.805, allocations: 2.643 MB / 1.215 GB, free: 3.086 MB / 0.4949 GB Notification: Performance of sort global known variables: time 9.42e-07/4.805, allocations: 0 / 1.215 GB, free: 3.086 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01352/4.818, allocations: 2.01 MB / 1.217 GB, free: 1.09 MB / 0.4949 GB 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (476): * Single equations (assignments): 432 * 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%) 3,(1,100.0%) 8,(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.003904/4.822, allocations: 0.9529 MB / 1.218 GB, free: 424 kB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.4292/5.251, allocations: 12.91 MB / 1.23 GB, free: 81.3 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/5.251, allocations: 1.281 kB / 1.23 GB, free: 81.3 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.02016/5.272, allocations: 6.613 MB / 1.237 GB, free: 80.41 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01167/5.283, allocations: 1.2 MB / 1.238 GB, free: 80.39 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06367/5.347, allocations: 19.64 MB / 1.257 GB, free: 77.28 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01581/5.363, allocations: 6.973 MB / 1.264 GB, free: 76.29 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003741/5.367, allocations: 452.6 kB / 1.264 GB, free: 76.29 MB / 0.4949 GB Notification: Performance of SimCode: time 1.502e-06/5.367, allocations: 0 / 1.264 GB, free: 76.29 MB / 0.4949 GB Notification: Performance of Templates: time 3.592/8.958, allocations: 0.9599 GB / 2.224 GB, free: 91.61 MB / 0.5262 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'