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_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001513/0.001513, allocations: 203 kB / 18.07 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.286/1.286, allocations: 226.5 MB / 245.4 MB, free: 6.492 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007488/0.000749, allocations: 97.08 kB / 297.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002315/0.0002316, allocations: 8 kB / 357.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2234, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3237/0.5472, allocations: 134.8 MB / 0.5308 GB, free: 49.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/0.5474, allocations: 117.3 kB / 0.5309 GB, free: 49.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.056/1.603, allocations: 367.2 MB / 0.8895 GB, free: 55.76 MB / 474.7 MB Notification: Performance of FrontEnd: time 5.19e-06/1.603, allocations: 3.469 kB / 0.8895 GB, free: 55.76 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008574/1.604, allocations: 224.4 kB / 0.8897 GB, free: 55.74 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03386/1.638, allocations: 9.968 MB / 0.8994 GB, free: 52.58 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/1.638, allocations: 10.12 kB / 0.8994 GB, free: 52.58 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02268/1.661, allocations: 4.309 MB / 0.9036 GB, free: 52.03 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01685/1.678, allocations: 7.832 MB / 0.9113 GB, free: 50.96 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007311/1.679, allocations: 0.6878 MB / 0.912 GB, free: 50.94 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004073/1.683, allocations: 0.9027 MB / 0.9128 GB, free: 50.94 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04038/1.723, allocations: 16.04 MB / 0.9285 GB, free: 49.82 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003874/1.724, allocations: 18.75 kB / 0.9285 GB, free: 49.81 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003161/1.727, allocations: 397.3 kB / 0.9289 GB, free: 49.81 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007863/1.727, allocations: 0.7449 MB / 0.9296 GB, free: 49.79 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03212/1.76, allocations: 14.07 MB / 0.9434 GB, free: 48.95 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08751/1.847, allocations: 53.04 MB / 0.9952 GB, free: 18.2 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01926/1.866, allocations: 20.11 MB / 1.015 GB, free: 13.63 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006569/1.873, allocations: 3.642 MB / 1.018 GB, free: 10.46 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005272/1.874, allocations: 263.8 kB / 1.019 GB, free: 10.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.186e-05/1.874, allocations: 80.62 kB / 1.019 GB, free: 10.11 MB / 490.7 MB Notification: Performance of pre-optimization done (n=453): time 6.662e-06/1.874, allocations: 0 / 1.019 GB, free: 10.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=458): time 0.35/2.224, allocations: 20.44 MB / 1.039 GB, free: 69.84 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/2.224, allocations: 98.62 kB / 1.039 GB, free: 69.77 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006966/2.231, allocations: 4.417 MB / 1.043 GB, free: 69.43 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008862/2.232, allocations: 95.86 kB / 1.043 GB, free: 69.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002785/2.234, allocations: 4.192 MB / 1.047 GB, free: 67.51 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001791/2.236, allocations: 1.55 MB / 1.049 GB, free: 66.53 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004233/2.237, allocations: 125.5 kB / 1.049 GB, free: 66.53 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003665/2.237, allocations: 0.5638 MB / 1.049 GB, free: 66.21 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00461/2.242, allocations: 3.06 MB / 1.052 GB, free: 66.2 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005259/2.247, allocations: 5.215 MB / 1.058 GB, free: 63.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01149/2.259, allocations: 8.885 MB / 1.066 GB, free: 61.11 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001194/2.259, allocations: 22.78 kB / 1.066 GB, free: 61.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01819/2.277, allocations: 9.849 MB / 1.076 GB, free: 60.69 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.997e-05/2.277, allocations: 34.44 kB / 1.076 GB, free: 60.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001518/2.277, allocations: 70.28 kB / 1.076 GB, free: 60.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003396/2.281, allocations: 1.368 MB / 1.077 GB, free: 60.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005334/2.286, allocations: 1.375 MB / 1.079 GB, free: 60.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01578/2.302, allocations: 11.64 MB / 1.09 GB, free: 57.75 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005019/2.307, allocations: 359.3 kB / 1.09 GB, free: 57.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/2.308, allocations: 291.7 kB / 1.091 GB, free: 57.73 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007915/2.316, allocations: 3.891 MB / 1.094 GB, free: 57.57 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001216/2.317, allocations: 462 kB / 1.095 GB, free: 57.33 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/2.33, allocations: 8.545 MB / 1.103 GB, free: 55.96 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009325/2.339, allocations: 6.262 MB / 1.109 GB, free: 53.55 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.061e-05/2.339, allocations: 16.91 kB / 1.109 GB, free: 53.54 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-05/2.339, allocations: 22.45 kB / 1.109 GB, free: 53.54 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03222/2.372, allocations: 17.94 MB / 1.127 GB, free: 45.99 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.905e-05/2.372, allocations: 11.78 kB / 1.127 GB, free: 45.98 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00279/2.374, allocations: 0.7985 MB / 1.128 GB, free: 45.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002921/2.377, allocations: 1.253 MB / 1.129 GB, free: 45.65 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003276/2.378, allocations: 104.2 kB / 1.129 GB, free: 45.59 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01215/2.39, allocations: 10.58 MB / 1.139 GB, free: 39.17 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/2.39, allocations: 11.72 kB / 1.139 GB, free: 39.17 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01598/2.406, allocations: 11.28 MB / 1.15 GB, free: 34.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002844/2.409, allocations: 1.133 MB / 1.151 GB, free: 33.43 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009637/2.41, allocations: 93.45 kB / 1.152 GB, free: 33.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00229/2.412, allocations: 245.1 kB / 1.152 GB, free: 33.3 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006486/2.413, allocations: 323.4 kB / 1.152 GB, free: 33.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002794/2.413, allocations: 142.2 kB / 1.152 GB, free: 33.21 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004608/2.418, allocations: 3.044 MB / 1.155 GB, free: 31.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.61e-07/2.418, allocations: 0 / 1.155 GB, free: 31.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008938/2.427, allocations: 1.802 MB / 1.157 GB, free: 30.02 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * 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 (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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 {(1,100.0%) 6,(14,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002294/2.429, allocations: 0.8143 MB / 1.158 GB, free: 29.51 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01289/2.442, allocations: 7.975 MB / 1.166 GB, free: 22.52 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.381e-05/2.442, allocations: 7.938 kB / 1.166 GB, free: 22.51 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007368/2.449, allocations: 3.96 MB / 1.169 GB, free: 19.02 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01003/2.459, allocations: 1.003 MB / 1.17 GB, free: 18.22 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03684/2.496, allocations: 21.48 MB / 1.191 GB, free: 14.79 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008501/2.505, allocations: 6.333 MB / 1.198 GB, free: 9.832 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002226/2.507, allocations: 427.4 kB / 1.198 GB, free: 9.438 MB / 0.4948 GB Notification: Performance of SimCode: time 7.72e-07/2.507, allocations: 0 / 1.198 GB, free: 9.438 MB / 0.4948 GB Notification: Performance of Templates: time 0.8207/3.328, allocations: 227.7 MB / 1.42 GB, free: 97.04 MB / 0.5261 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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_withLossesCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesTypes.h:116:9: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType' typedef _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iRetType /* functionHeaderRegularFunction1 */; ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesTypes.h:117:9: error: unknown type name '_omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPowerType' typedef _omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPowerType _omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPowerRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.h:18:115: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType' void /*RecordTypetest*/ _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i(double re_, double im_,_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType &output ); ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.h:19:125: error: unknown type name '_omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPowerType' void /*RecordTypetest*/ _omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPower(double re_, double im_,_omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPowerType &output ); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:63:106: error: unknown type name '_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType' void Functions::_omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24i(double re_, double im_, _omcQComplexOutput_24currentQuasiRMSSensorQS_24currentSensor_24iType& output) ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:71:116: error: unknown type name '_omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPowerType' void Functions::_omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPower(double re_, double im_, _omcQComplexOutput_24electricalPowerSensorQS_24powerSensor_24apparentPowerType& output) ^ 6 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o] Error 1