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_Initialize.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_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|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.strayReluctance.port_p.Phi.im|imc.stator.strayReluctance.port_p.Phi.re|// 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_Initialize") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="mat",numberOfIntervals=300000,variableFilter="time|imc.airGap.V_mrr.im|imc.airGap.V_mrr.re|imc.airGap.V_msr.im|imc.airGap.V_msr.re|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.strayReluctance.port_p.Phi.im|imc.stator.strayReluctance.port_p.Phi.re|// 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_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001454/0.001454, allocations: 186.2 kB / 16.4 MB, free: 5.746 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.004/2.004, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001185/0.001184, allocations: 100.3 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004007/0.0004007, allocations: 8 kB / 327 MB, free: 176 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3422, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.531/0.8733, allocations: 146.6 MB / 0.509 GB, free: 65.44 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003665/0.8737, allocations: 104.5 kB / 0.5091 GB, free: 65.44 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.724/2.598, allocations: 350.8 MB / 0.8516 GB, free: 32.95 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.387e-06/2.598, allocations: 0 / 0.8516 GB, free: 32.95 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008436/2.599, allocations: 249 kB / 0.8519 GB, free: 32.93 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.05057/2.649, allocations: 10.94 MB / 0.8626 GB, free: 29.39 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/2.649, allocations: 7.875 kB / 0.8626 GB, free: 29.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0466/2.696, allocations: 5.406 MB / 0.8678 GB, free: 28.77 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03321/2.729, allocations: 9.419 MB / 0.877 GB, free: 27.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001366/2.731, allocations: 0.7897 MB / 0.8778 GB, free: 27.63 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005851/2.737, allocations: 1.038 MB / 0.8788 GB, free: 27.62 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06039/2.797, allocations: 17.95 MB / 0.8964 GB, free: 26.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005929/2.798, allocations: 20.77 kB / 0.8964 GB, free: 26.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004051/2.802, allocations: 450.2 kB / 0.8968 GB, free: 26.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0011/2.803, allocations: 0.7303 MB / 0.8975 GB, free: 26.36 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05082/2.854, allocations: 16.74 MB / 0.9139 GB, free: 23.45 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1561/3.01, allocations: 58.35 MB / 0.9709 GB, free: 1.363 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4255/3.436, allocations: 24.37 MB / 0.9947 GB, free: 34.81 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05658/3.492, allocations: 21.61 MB / 1.016 GB, free: 33.76 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001175/3.492, allocations: 94.22 kB / 1.016 GB, free: 33.71 MB / 458.7 MB Notification: Performance of pre-optimization done (n=672): time 1.314e-05/3.492, allocations: 4.781 kB / 1.016 GB, free: 33.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=697): time 0.132/3.624, allocations: 39.12 MB / 1.054 GB, free: 26.08 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.492e-05/3.625, allocations: 143.7 kB / 1.054 GB, free: 25.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008013/3.633, allocations: 3.61 MB / 1.058 GB, free: 24.87 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001644/3.634, allocations: 127.2 kB / 1.058 GB, free: 24.76 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003053/3.637, allocations: 3.996 MB / 1.062 GB, free: 21.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003655/3.641, allocations: 2.314 MB / 1.064 GB, free: 19.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001079/3.642, allocations: 136.6 kB / 1.064 GB, free: 19.76 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005515/3.643, allocations: 0.596 MB / 1.065 GB, free: 19.32 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01147/3.654, allocations: 4.572 MB / 1.069 GB, free: 17.4 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01328/3.667, allocations: 6.119 MB / 1.075 GB, free: 13.71 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0149/3.682, allocations: 5.587 MB / 1.081 GB, free: 11.15 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.983e-05/3.683, allocations: 13.45 kB / 1.081 GB, free: 11.15 MB / 458.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.04044/3.723, allocations: 13.77 MB / 1.094 GB, free: 5.512 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.56e-05/3.723, allocations: 21.94 kB / 1.094 GB, free: 5.512 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001234/3.723, allocations: 48.97 kB / 1.094 GB, free: 5.512 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01449/3.738, allocations: 4.035 MB / 1.098 GB, free: 4.344 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01064/3.748, allocations: 1.315 MB / 1.099 GB, free: 4.301 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02959/3.778, allocations: 16.97 MB / 1.116 GB, free: 8.922 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008449/3.787, allocations: 362.8 kB / 1.116 GB, free: 8.809 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002082/3.789, allocations: 292.7 kB / 1.117 GB, free: 8.754 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 197 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (675): * Single equations (assignments): 636 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(7,59.2%) 28,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01249/3.801, allocations: 3.928 MB / 1.12 GB, free: 6.625 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002396/3.804, allocations: 0.5393 MB / 1.121 GB, free: 6.082 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04397/3.848, allocations: 13.4 MB / 1.134 GB, free: 10.53 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002591/3.848, allocations: 156.4 kB / 1.134 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-05/3.848, allocations: 12 kB / 1.134 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001536/3.848, allocations: 27.66 kB / 1.134 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08187/3.93, allocations: 26.97 MB / 1.161 GB, free: 3.98 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001074/3.93, allocations: 8.031 kB / 1.161 GB, free: 3.973 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008291/3.939, allocations: 0.878 MB / 1.161 GB, free: 3.293 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01538/3.954, allocations: 3.914 MB / 1.165 GB, free: 124 kB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002027/3.956, allocations: 152.1 kB / 1.165 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4121/4.368, allocations: 20.88 MB / 1.186 GB, free: 82.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/4.368, allocations: 5.75 kB / 1.186 GB, free: 82.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05465/4.423, allocations: 20.24 MB / 1.206 GB, free: 80.66 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006003/4.429, allocations: 1.652 MB / 1.207 GB, free: 80.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002414/4.431, allocations: 112.4 kB / 1.207 GB, free: 80.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007226/4.439, allocations: 312.5 kB / 1.208 GB, free: 80.56 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002631/4.441, allocations: 0.5027 MB / 1.208 GB, free: 80.56 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009317/4.442, allocations: 192.2 kB / 1.208 GB, free: 80.56 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006997/4.449, allocations: 2.731 MB / 1.211 GB, free: 80.38 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.91e-07/4.449, allocations: 2.156 kB / 1.211 GB, free: 80.38 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01269/4.462, allocations: 1.988 MB / 1.213 GB, free: 80.38 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (455): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * 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%) 1,(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.002694/4.465, allocations: 0.5661 MB / 1.213 GB, free: 80.27 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03277/4.498, allocations: 11.83 MB / 1.225 GB, free: 79.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.429e-05/4.498, allocations: 7 kB / 1.225 GB, free: 79.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01877/4.516, allocations: 6.706 MB / 1.231 GB, free: 78.71 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01074/4.527, allocations: 1.169 MB / 1.233 GB, free: 78.69 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06413/4.591, allocations: 26.6 MB / 1.259 GB, free: 66.14 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0132/4.605, allocations: 6.915 MB / 1.265 GB, free: 63.69 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00341/4.608, allocations: 442.2 kB / 1.266 GB, free: 63.66 MB / 0.4948 GB Notification: Performance of SimCode: time 1.272e-06/4.608, allocations: 0 / 1.266 GB, free: 63.66 MB / 0.4948 GB Notification: Performance of Templates: time 3.394/8.002, allocations: 0.8941 GB / 2.16 GB, free: 108.4 MB / 0.5261 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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_InitializeCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeFunctions.cpp:418:43: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp234 = 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_InitializeFunctions.cpp:418:86: error: use of undeclared identifier \'UNKNOWN_SUBSCRIPT\'\n tmp234 = 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_InitializeCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.o] Error 1\n'