Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|lossPower_e|lossPower_m",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|lossPower_e|lossPower_m",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009299/0.0009299, allocations: 202.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007165/0.0007165, allocations: 101 kB / 297.4 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002191/0.0002191, allocations: 11.98 kB / 357.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1848/0.1851, allocations: 51.28 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1021/0.2872, allocations: 101.7 MB / 0.4984 GB, free: 5.887 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/0.2875, allocations: 93.38 kB / 0.4985 GB, free: 5.797 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8571/1.145, allocations: 324.8 MB / 0.8156 GB, free: 29.64 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.573e-06/1.145, allocations: 4 kB / 0.8156 GB, free: 29.64 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003265/1.145, allocations: 195.8 kB / 0.8158 GB, free: 29.45 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2497 * Number of variables: 2497 Notification: Performance of Generate backend data structure: time 0.02582/1.171, allocations: 8.992 MB / 0.8246 GB, free: 20.37 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/1.171, allocations: 16.02 kB / 0.8246 GB, free: 20.36 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02082/1.192, allocations: 4.22 MB / 0.8287 GB, free: 16.12 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01373/1.205, allocations: 6.104 MB / 0.8347 GB, free: 9.953 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006952/1.206, allocations: 0.6357 MB / 0.8353 GB, free: 9.316 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003002/1.209, allocations: 0.828 MB / 0.8361 GB, free: 8.488 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2296/1.439, allocations: 14.6 MB / 0.8504 GB, free: 48.89 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002366/1.439, allocations: 11.69 kB / 0.8504 GB, free: 48.89 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001507/1.441, allocations: 370.4 kB / 0.8508 GB, free: 48.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005491/1.441, allocations: 0.6855 MB / 0.8514 GB, free: 48.87 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02262/1.464, allocations: 12.48 MB / 0.8636 GB, free: 48.77 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06561/1.529, allocations: 44.81 MB / 0.9074 GB, free: 40.65 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01067/1.54, allocations: 11.67 MB / 0.9188 GB, free: 32.04 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004207/1.544, allocations: 3.166 MB / 0.9219 GB, free: 30.89 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000455/1.545, allocations: 254.5 kB / 0.9221 GB, free: 30.69 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.086e-05/1.545, allocations: 79.73 kB / 0.9222 GB, free: 30.62 MB / 458.7 MB Notification: Performance of pre-optimization done (n=421): time 6.933e-06/1.545, allocations: 0 / 0.9222 GB, free: 30.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=421): time 0.01975/1.565, allocations: 9.753 MB / 0.9317 GB, free: 27.45 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.347e-05/1.565, allocations: 120.1 kB / 0.9318 GB, free: 27.36 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005901/1.571, allocations: 3.124 MB / 0.9349 GB, free: 26.26 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006893/1.571, allocations: 89.55 kB / 0.935 GB, free: 26.18 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001821/1.573, allocations: 3.676 MB / 0.9385 GB, free: 23.59 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001451/1.575, allocations: 1.433 MB / 0.9399 GB, free: 22.49 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006836/1.575, allocations: 120.6 kB / 0.9401 GB, free: 22.39 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004151/1.576, allocations: 0.5378 MB / 0.9406 GB, free: 21.99 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004458/1.58, allocations: 2.86 MB / 0.9434 GB, free: 20.98 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005302/1.586, allocations: 4.925 MB / 0.9482 GB, free: 17.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009346/1.595, allocations: 8.315 MB / 0.9563 GB, free: 12.22 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-05/1.595, allocations: 19.78 kB / 0.9563 GB, free: 12.22 MB / 458.7 MB Notification: Performance of matching and sorting (n=754) (initialization): time 0.01692/1.612, allocations: 9.129 MB / 0.9652 GB, free: 9.145 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001055/1.612, allocations: 33.72 kB / 0.9653 GB, free: 9.145 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001465/1.612, allocations: 66.09 kB / 0.9653 GB, free: 9.145 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003194/1.616, allocations: 1.115 MB / 0.9664 GB, free: 8.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005107/1.621, allocations: 1.287 MB / 0.9677 GB, free: 8.887 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01255/1.633, allocations: 9.873 MB / 0.9773 GB, free: 3.207 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004796/1.638, allocations: 0.7352 MB / 0.978 GB, free: 2.789 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001251/1.639, allocations: 278 kB / 0.9783 GB, free: 2.582 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 302 * 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 (680): * Single equations (assignments): 670 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,100.0%) 24,(5,80.0%) 33} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00789/1.647, allocations: 3.451 MB / 0.9817 GB, free: 15.79 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/1.649, allocations: 347.5 kB / 0.982 GB, free: 15.45 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01621/1.665, allocations: 6.978 MB / 0.9888 GB, free: 9.699 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01161/1.676, allocations: 5.802 MB / 0.9945 GB, free: 4.773 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.603e-05/1.676, allocations: 12 kB / 0.9945 GB, free: 4.762 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-05/1.677, allocations: 24.09 kB / 0.9945 GB, free: 4.762 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03888/1.715, allocations: 15.62 MB / 1.01 GB, free: 8.195 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.525e-05/1.716, allocations: 18.88 kB / 1.01 GB, free: 8.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003414/1.719, allocations: 0.7833 MB / 1.011 GB, free: 7.523 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00301/1.722, allocations: 1.024 MB / 1.012 GB, free: 6.781 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000756/1.723, allocations: 114.6 kB / 1.012 GB, free: 6.676 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2469/1.97, allocations: 9.673 MB / 1.021 GB, free: 75.88 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.976e-05/1.97, allocations: 22.72 kB / 1.021 GB, free: 75.88 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01436/1.984, allocations: 10.87 MB / 1.032 GB, free: 74.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002017/1.986, allocations: 1.015 MB / 1.033 GB, free: 74.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005728/1.987, allocations: 96.42 kB / 1.033 GB, free: 74.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002052/1.989, allocations: 277.6 kB / 1.033 GB, free: 74.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005996/1.989, allocations: 349.6 kB / 1.033 GB, free: 74.69 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002647/1.99, allocations: 144.2 kB / 1.034 GB, free: 74.69 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002844/1.993, allocations: 2.085 MB / 1.036 GB, free: 74.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.993, allocations: 0 / 1.036 GB, free: 74.54 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006202/1.999, allocations: 2.247 MB / 1.038 GB, free: 74.28 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 58 * Number of states: 2 (converter_m.port_p.reference.gamma,loss_e.conductor[1].pin_p.reference.gamma) * 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 (421): * Single equations (assignments): 411 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,100.0%) 24,(5,80.0%) 33} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008237/2, allocations: 322.9 kB / 1.038 GB, free: 74.19 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01052/2.01, allocations: 7.504 MB / 1.045 GB, free: 73.74 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.329e-05/2.01, allocations: 3.656 kB / 1.045 GB, free: 73.74 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005364/2.016, allocations: 3.716 MB / 1.049 GB, free: 73.42 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009233/2.025, allocations: 0.7658 MB / 1.05 GB, free: 73.41 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02857/2.053, allocations: 18.95 MB / 1.068 GB, free: 65.97 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007252/2.061, allocations: 5.774 MB / 1.074 GB, free: 65.04 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001931/2.063, allocations: 361.5 kB / 1.074 GB, free: 65.03 MB / 490.7 MB Notification: Performance of SimCode: time 1.383e-06/2.063, allocations: 0 / 1.074 GB, free: 65.03 MB / 490.7 MB Notification: Performance of Templates: time 0.4265/2.489, allocations: 193.9 MB / 1.264 GB, free: 81.34 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.makefile make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.Components.EddyCurrentLossesCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLossesCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLossesCalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLossesTypes.h:36:9: error: unknown type name '_omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPowerType' typedef _omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPowerType _omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPowerRetType /* functionHeaderRegularFunction1 */; ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLossesTypes.h:37:9: error: unknown type name '_omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPowerType' typedef _omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPowerType _omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPowerRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLossesCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLossesFunctions.h:18:115: error: unknown type name '_omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPowerType' void /*RecordTypetest*/ _omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPower(double re_, double im_,_omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPowerType &output ); ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLossesFunctions.h:19:115: error: unknown type name '_omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPowerType' void /*RecordTypetest*/ _omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPower(double re_, double im_,_omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPowerType &output ); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLossesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLossesFunctions.cpp:54:106: error: unknown type name '_omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPowerType' void Functions::_omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPower(double re_, double im_, _omcQComplexOutput_24powerb_5F_5Fe_24powerSensor_24apparentPowerType& output) ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLossesFunctions.cpp:62:106: error: unknown type name '_omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPowerType' void Functions::_omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPower(double re_, double im_, _omcQComplexOutput_24powerb_5F_5Fm_24powerSensor_24apparentPowerType& output) ^ 6 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.Components.EddyCurrentLossesCalcHelperMain.o] Error 1