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.002071/0.00207, allocations: 182 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.008/2.008, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001123/0.001122, allocations: 82.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.78e-05/2.804e-05, allocations: 7.984 kB / 321.5 MB, free: 17.8 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09664/0.0967, allocations: 47.57 MB / 369.1 MB, free: 2.168 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5342/0.631, allocations: 146.5 MB / 0.5036 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004145/0.6314, allocations: 101.8 kB / 0.5037 GB, free: 11.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.674/2.306, allocations: 350.6 MB / 0.846 GB, free: 11.34 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.146e-06/2.306, allocations: 0 / 0.846 GB, free: 11.34 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001056/2.307, allocations: 255.7 kB / 0.8462 GB, free: 11.09 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.05269/2.36, allocations: 10.27 MB / 0.8563 GB, free: 0.7188 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.879e-05/2.36, allocations: 12.03 kB / 0.8563 GB, free: 0.707 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7344/3.094, allocations: 5.372 MB / 0.8615 GB, free: 28.25 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03542/3.13, allocations: 9.373 MB / 0.8707 GB, free: 27.74 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001745/3.131, allocations: 0.7895 MB / 0.8715 GB, free: 27.71 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006273/3.138, allocations: 1.04 MB / 0.8725 GB, free: 27.71 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06354/3.201, allocations: 17.72 MB / 0.8898 GB, free: 26.52 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006501/3.202, allocations: 16.5 kB / 0.8898 GB, free: 26.52 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005008/3.207, allocations: 452.2 kB / 0.8902 GB, free: 26.52 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00124/3.208, allocations: 0.735 MB / 0.8909 GB, free: 26.49 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04974/3.258, allocations: 16.42 MB / 0.907 GB, free: 26.38 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1496/3.408, allocations: 58.32 MB / 0.9639 GB, free: 3.414 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03859/3.446, allocations: 23.32 MB / 0.9867 GB, free: 1.453 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01906/3.466, allocations: 7.028 MB / 0.9936 GB, free: 14.87 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07453/3.54, allocations: 22.39 MB / 1.015 GB, free: 0 / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001661/3.54, allocations: 103.5 kB / 1.016 GB, free: 15.89 MB / 490.8 MB Notification: Performance of pre-optimization done (n=662): time 9.659e-06/3.54, allocations: 0 / 1.016 GB, free: 15.89 MB / 490.8 MB Notification: Performance of matching and sorting (n=687): time 0.4514/3.992, allocations: 25.01 MB / 1.04 GB, free: 68.92 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.925e-05/3.992, allocations: 144.7 kB / 1.04 GB, free: 68.82 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009973/4.002, allocations: 3.567 MB / 1.044 GB, free: 68.54 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001645/4.004, allocations: 123.2 kB / 1.044 GB, free: 68.5 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003622/4.007, allocations: 4.012 MB / 1.048 GB, free: 67.24 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004023/4.011, allocations: 2.28 MB / 1.05 GB, free: 65.77 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001704/4.013, allocations: 136.2 kB / 1.05 GB, free: 65.77 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0008653/4.014, allocations: 0.5972 MB / 1.051 GB, free: 65.44 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01281/4.027, allocations: 4.438 MB / 1.055 GB, free: 65.43 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01459/4.042, allocations: 6.002 MB / 1.061 GB, free: 63.77 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01457/4.056, allocations: 5.469 MB / 1.066 GB, free: 63.66 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.142e-05/4.056, allocations: 10.91 kB / 1.066 GB, free: 63.66 MB / 490.8 MB Notification: Performance of matching and sorting (n=931) (initialization): time 0.03877/4.095, allocations: 13.35 MB / 1.079 GB, free: 63.21 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.466e-05/4.095, allocations: 24.91 kB / 1.079 GB, free: 63.21 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001072/4.095, allocations: 43.97 kB / 1.079 GB, free: 63.21 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01437/4.11, allocations: 3.976 MB / 1.083 GB, free: 63.12 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01068/4.12, allocations: 1.303 MB / 1.084 GB, free: 63.12 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02794/4.148, allocations: 16.73 MB / 1.101 GB, free: 56.52 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009024/4.157, allocations: 357.5 kB / 1.101 GB, free: 56.51 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002269/4.16, allocations: 295.9 kB / 1.101 GB, free: 56.51 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 199 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (667): * Single equations (assignments): 628 * 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,(8,56.2%) 27,(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.003234/4.163, allocations: 480.1 kB / 1.102 GB, free: 56.38 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002228/4.165, allocations: 0.526 MB / 1.102 GB, free: 56.1 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03809/4.203, allocations: 13.15 MB / 1.115 GB, free: 54.58 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002192/4.204, allocations: 154.5 kB / 1.115 GB, free: 54.5 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-05/4.204, allocations: 6.656 kB / 1.115 GB, free: 54.5 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001534/4.204, allocations: 29.86 kB / 1.115 GB, free: 54.5 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07305/4.277, allocations: 26.5 MB / 1.141 GB, free: 42.64 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001125/4.277, allocations: 3.938 kB / 1.141 GB, free: 42.64 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007774/4.285, allocations: 0.8579 MB / 1.142 GB, free: 42.62 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01382/4.299, allocations: 3.934 MB / 1.146 GB, free: 41.43 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001861/4.301, allocations: 152.6 kB / 1.146 GB, free: 41.35 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02844/4.329, allocations: 20.66 MB / 1.166 GB, free: 25.99 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/4.329, allocations: 3.938 kB / 1.166 GB, free: 25.99 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04897/4.378, allocations: 19.8 MB / 1.186 GB, free: 11.38 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006308/4.385, allocations: 1.639 MB / 1.187 GB, free: 9.891 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002394/4.387, allocations: 115.3 kB / 1.187 GB, free: 9.785 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007333/4.394, allocations: 302 kB / 1.188 GB, free: 9.57 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002804/4.397, allocations: 0.5082 MB / 1.188 GB, free: 9.25 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001594/4.399, allocations: 186.3 kB / 1.188 GB, free: 9.082 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.006697/4.406, allocations: 2.696 MB / 1.191 GB, free: 6.645 MB / 490.8 MB Notification: Performance of sort global known variables: time 2.836e-06/4.406, allocations: 0 / 1.191 GB, free: 6.645 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01204/4.418, allocations: 1.977 MB / 1.193 GB, free: 4.676 MB / 490.8 MB 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 403 * 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%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * 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.002734/4.421, allocations: 0.6821 MB / 1.193 GB, free: 4.156 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.05609/4.477, allocations: 12.91 MB / 1.206 GB, free: 13.37 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.408e-05/4.477, allocations: 4 kB / 1.206 GB, free: 13.37 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.02064/4.497, allocations: 6.538 MB / 1.212 GB, free: 7.418 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01132/4.509, allocations: 1.18 MB / 1.214 GB, free: 6.508 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4417/4.95, allocations: 19.52 MB / 1.233 GB, free: 78.09 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01895/4.969, allocations: 6.916 MB / 1.239 GB, free: 77.2 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003636/4.973, allocations: 432.7 kB / 1.24 GB, free: 77.2 MB / 0.4949 GB Notification: Performance of SimCode: time 1.974e-06/4.973, allocations: 0 / 1.24 GB, free: 77.2 MB / 0.4949 GB Notification: Performance of Templates: time 3.433/8.406, allocations: 0.8937 GB / 2.134 GB, free: 111.7 MB / 0.5262 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'