Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_trunk_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.port_p.V_m.im|imc.stator.port_p.V_m.re|imc.stator.zeroInductor.i0|imcQS.rotorCage.port_p.reference.gamma|loadInertia.phi|loadInertia.w|loadInertiaQS.phi|loadInertiaQS.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001082/0.001082, allocations: 203.3 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.5 MB / 245.4 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007406/0.0007407, allocations: 101.7 kB / 297.4 MB, free: 6.855 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002113/0.0002113, allocations: 8 kB / 357.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2086, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.37/0.5787, allocations: 148.7 MB / 0.5443 GB, free: 41.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.579, allocations: 108.8 kB / 0.5444 GB, free: 41.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.161/1.74, allocations: 362.3 MB / 0.8982 GB, free: 42.57 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.515e-06/1.74, allocations: 0 / 0.8982 GB, free: 42.57 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0006914/1.741, allocations: 247.6 kB / 0.8984 GB, free: 42.54 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.03796/1.779, allocations: 10.81 MB / 0.909 GB, free: 39.02 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.718e-05/1.779, allocations: 12.09 kB / 0.909 GB, free: 39.02 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02787/1.807, allocations: 4.791 MB / 0.9137 GB, free: 38.42 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02523/1.832, allocations: 8.839 MB / 0.9223 GB, free: 37.22 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001132/1.833, allocations: 0.767 MB / 0.923 GB, free: 37.2 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005988/1.839, allocations: 1.025 MB / 0.924 GB, free: 37.19 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04885/1.888, allocations: 17.1 MB / 0.9407 GB, free: 35.95 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006585/1.889, allocations: 18.03 kB / 0.9408 GB, free: 35.95 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004429/1.893, allocations: 451.3 kB / 0.9412 GB, free: 35.95 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009316/1.894, allocations: 0.7485 MB / 0.9419 GB, free: 35.92 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03435/1.929, allocations: 15.33 MB / 0.9569 GB, free: 33.61 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1101/2.039, allocations: 57.12 MB / 1.013 GB, free: 11.71 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.339/2.378, allocations: 31.39 MB / 1.043 GB, free: 37.34 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006277/2.384, allocations: 4.352 MB / 1.048 GB, free: 37.29 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01601/2.4, allocations: 10.77 MB / 1.058 GB, free: 36.23 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.449e-05/2.4, allocations: 82.53 kB / 1.058 GB, free: 36.19 MB / 490.7 MB Notification: Performance of pre-optimization done (n=398): time 5.601e-06/2.4, allocations: 0 / 1.058 GB, free: 36.19 MB / 490.7 MB Notification: Performance of matching and sorting (n=423): time 0.03782/2.438, allocations: 21.39 MB / 1.079 GB, free: 32.42 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/2.438, allocations: 121.1 kB / 1.079 GB, free: 32.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00626/2.444, allocations: 4.618 MB / 1.084 GB, free: 31.97 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008189/2.445, allocations: 96.14 kB / 1.084 GB, free: 31.94 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002345/2.448, allocations: 4.667 MB / 1.088 GB, free: 29.57 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001389/2.449, allocations: 1.449 MB / 1.09 GB, free: 28.65 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003271/2.449, allocations: 120.4 kB / 1.09 GB, free: 28.65 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002563/2.45, allocations: 0.5439 MB / 1.09 GB, free: 28.33 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003984/2.454, allocations: 2.897 MB / 1.093 GB, free: 28.32 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004715/2.458, allocations: 4.935 MB / 1.098 GB, free: 25.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/2.469, allocations: 8.332 MB / 1.106 GB, free: 23.45 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/2.469, allocations: 19.09 kB / 1.106 GB, free: 23.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01926/2.488, allocations: 9.702 MB / 1.116 GB, free: 22.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.702e-05/2.488, allocations: 33.06 kB / 1.116 GB, free: 22.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001318/2.488, allocations: 66.31 kB / 1.116 GB, free: 22.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004466/2.493, allocations: 1.655 MB / 1.117 GB, free: 22.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005123/2.498, allocations: 1.317 MB / 1.119 GB, free: 22.84 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02029/2.518, allocations: 16.48 MB / 1.135 GB, free: 12.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005461/2.524, allocations: 335.7 kB / 1.135 GB, free: 12.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001263/2.525, allocations: 281 kB / 1.135 GB, free: 12.78 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * 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 (671): * Single equations (assignments): 667 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(7,67.3%) 28,(1,100.0%) 1,(14,40.3%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009275/2.534, allocations: 3.886 MB / 1.139 GB, free: 10.87 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001738/2.536, allocations: 0.4939 MB / 1.14 GB, free: 10.61 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01439/2.55, allocations: 7.781 MB / 1.147 GB, free: 7.289 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.983e-05/2.551, allocations: 48.62 kB / 1.147 GB, free: 7.289 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.133e-05/2.551, allocations: 14.84 kB / 1.147 GB, free: 7.289 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.215e-05/2.551, allocations: 24.83 kB / 1.147 GB, free: 7.289 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04131/2.592, allocations: 17.47 MB / 1.164 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-05/2.592, allocations: 8.125 kB / 1.164 GB, free: 15.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003243/2.595, allocations: 0.7144 MB / 1.165 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004388/2.6, allocations: 1.569 MB / 1.167 GB, free: 15.42 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007092/2.6, allocations: 101.9 kB / 1.167 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02352/2.624, allocations: 19.5 MB / 1.186 GB, free: 0.5312 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-05/2.624, allocations: 13.81 kB / 1.186 GB, free: 0.5195 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02383/2.648, allocations: 11.4 MB / 1.197 GB, free: 6.457 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00454/2.652, allocations: 1.158 MB / 1.198 GB, free: 5.402 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002661/2.655, allocations: 92 kB / 1.198 GB, free: 5.312 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004351/2.66, allocations: 246.1 kB / 1.198 GB, free: 5.133 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001274/2.661, allocations: 331.4 kB / 1.199 GB, free: 4.934 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006802/2.662, allocations: 131.3 kB / 1.199 GB, free: 4.812 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00785/2.669, allocations: 3.12 MB / 1.202 GB, free: 2.207 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.51e-07/2.669, allocations: 2.188 kB / 1.202 GB, free: 2.207 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01151/2.681, allocations: 1.927 MB / 1.204 GB, free: 300 kB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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.zeroInductor.i0,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,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 (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(14,39.8%) 44,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002022/2.683, allocations: 0.5587 MB / 1.204 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01753/2.701, allocations: 8.076 MB / 1.212 GB, free: 8.754 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/2.701, allocations: 8.062 kB / 1.212 GB, free: 8.746 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.009574/2.71, allocations: 4.641 MB / 1.217 GB, free: 4.539 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01436/2.725, allocations: 1.245 MB / 1.218 GB, free: 3.57 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3116/3.036, allocations: 22.76 MB / 1.24 GB, free: 86.93 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008467/3.045, allocations: 6.583 MB / 1.247 GB, free: 85.96 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002218/3.047, allocations: 431.6 kB / 1.247 GB, free: 85.96 MB / 0.5261 GB Notification: Performance of SimCode: time 3.186e-06/3.047, allocations: 0 / 1.247 GB, free: 85.96 MB / 0.5261 GB Notification: Performance of Templates: time 1.581/4.628, allocations: 461.2 MB / 1.697 GB, free: 93.68 MB / 0.5417 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.makefile clang++ -std=c++14 -Winvalid-pch -O2 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeTypes.h:121:9: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType' typedef _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeFunctions.h:17:115: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType' void /*RecordTypetest*/ _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i(double re_, double im_,_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType &output ); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeFunctions.cpp:48:106: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType' void Functions::_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i(double re_, double im_, _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType& output) ^ 3 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.o] Error 1