Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00116/0.00116, allocations: 194.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.23/1.23, allocations: 226.5 MB / 245.4 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007513/0.0007514, allocations: 95.31 kB / 297.4 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001934/0.0001934, allocations: 8 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1965/0.1968, allocations: 51.3 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0991/0.2959, allocations: 94.07 MB / 0.491 GB, free: 13.5 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/0.2962, allocations: 83.95 kB / 0.491 GB, free: 13.42 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2495/0.5457, allocations: 31.5 MB / 0.5218 GB, free: 88.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5458, allocations: 4 kB / 0.5218 GB, free: 88.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.463e-05/0.5458, allocations: 15.62 kB / 0.5218 GB, free: 88.63 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.002773/0.5486, allocations: 1.27 MB / 0.5231 GB, free: 87.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.5486, allocations: 10.72 kB / 0.5231 GB, free: 87.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002243/0.5509, allocations: 415.2 kB / 0.5235 GB, free: 87.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.5514, allocations: 0.4924 MB / 0.5239 GB, free: 87.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.249e-05/0.5515, allocations: 94.06 kB / 0.524 GB, free: 87.19 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.5516, allocations: 110.5 kB / 0.5241 GB, free: 87.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.5531, allocations: 0.9681 MB / 0.5251 GB, free: 86.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/0.5531, allocations: 7.875 kB / 0.5251 GB, free: 86.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.55e-05/0.5532, allocations: 47.83 kB / 0.5251 GB, free: 86.53 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.5532, allocations: 31.41 kB / 0.5252 GB, free: 86.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001544/0.5548, allocations: 0.976 MB / 0.5261 GB, free: 85.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004574/0.5594, allocations: 3.823 MB / 0.5299 GB, free: 81.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001406/0.5608, allocations: 1.548 MB / 0.5314 GB, free: 79.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006158/0.5614, allocations: 434.8 kB / 0.5318 GB, free: 79.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001283/0.5616, allocations: 183.6 kB / 0.532 GB, free: 79.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006552/0.5622, allocations: 489.1 kB / 0.5324 GB, free: 78.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 2.725e-06/0.5622, allocations: 0 / 0.5324 GB, free: 78.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.007041/0.5693, allocations: 4.175 MB / 0.5365 GB, free: 74.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.5694, allocations: 234.5 kB / 0.5367 GB, free: 74.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000342/0.5697, allocations: 393.5 kB / 0.5371 GB, free: 73.81 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.001e-05/0.5698, allocations: 45.7 kB / 0.5371 GB, free: 73.76 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001749/0.5699, allocations: 426.7 kB / 0.5375 GB, free: 73.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.5701, allocations: 408.6 kB / 0.5379 GB, free: 72.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-05/0.5702, allocations: 24 kB / 0.538 GB, free: 72.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.696e-05/0.5703, allocations: 382.7 kB / 0.5383 GB, free: 72.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005931/0.5709, allocations: 346.5 kB / 0.5387 GB, free: 72.2 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006485/0.5715, allocations: 0.5494 MB / 0.5392 GB, free: 71.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001257/0.5728, allocations: 0.9322 MB / 0.5401 GB, free: 70.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.5728, allocations: 0 / 0.5401 GB, free: 70.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002054/0.5749, allocations: 1.356 MB / 0.5414 GB, free: 69.21 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.5749, allocations: 8 kB / 0.5414 GB, free: 69.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.738e-06/0.5749, allocations: 4 kB / 0.5414 GB, free: 69.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007186/0.5756, allocations: 343.2 kB / 0.5418 GB, free: 68.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007369/0.5764, allocations: 195.7 kB / 0.5419 GB, free: 68.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005264/0.5817, allocations: 7.704 MB / 0.5495 GB, free: 60.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005843/0.5823, allocations: 47.98 kB / 0.5495 GB, free: 60.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.926e-05/0.5823, allocations: 43.98 kB / 0.5496 GB, free: 60.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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%) 4,(1,100.0%) 2,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003545/0.5827, allocations: 265.6 kB / 0.5498 GB, free: 60.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.564e-05/0.5828, allocations: 71.16 kB / 0.5499 GB, free: 60 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002017/0.5848, allocations: 1.254 MB / 0.5511 GB, free: 58.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.5848, allocations: 15.94 kB / 0.5511 GB, free: 58.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.5849, allocations: 11.94 kB / 0.5511 GB, free: 58.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.5849, allocations: 3.984 kB / 0.5511 GB, free: 58.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003291/0.5882, allocations: 2.662 MB / 0.5537 GB, free: 55.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.56e-06/0.5882, allocations: 4 kB / 0.5537 GB, free: 55.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006152/0.5888, allocations: 147.9 kB / 0.5539 GB, free: 55.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000694/0.5895, allocations: 323.4 kB / 0.5542 GB, free: 55.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.147e-05/0.5896, allocations: 24 kB / 0.5542 GB, free: 55.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004932/0.5945, allocations: 7.431 MB / 0.5615 GB, free: 47.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.5946, allocations: 3.938 kB / 0.5615 GB, free: 47.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002653/0.5972, allocations: 1.758 MB / 0.5632 GB, free: 45.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000281/0.5975, allocations: 228 kB / 0.5634 GB, free: 45.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.423e-05/0.5976, allocations: 24 kB / 0.5634 GB, free: 45.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004565/0.5981, allocations: 43.98 kB / 0.5635 GB, free: 45.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001474/0.5982, allocations: 96.8 kB / 0.5636 GB, free: 45.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.373e-05/0.5983, allocations: 35.98 kB / 0.5636 GB, free: 45.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002444/0.5985, allocations: 267.2 kB / 0.5639 GB, free: 45.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5985, allocations: 4 kB / 0.5639 GB, free: 45.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001056/0.5996, allocations: 327.9 kB / 0.5642 GB, free: 44.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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%) 2,(2,100.0%) 18,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002877/0.5999, allocations: 201.5 kB / 0.5644 GB, free: 44.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00209/0.602, allocations: 1.598 MB / 0.5659 GB, free: 42.87 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.602, allocations: 4.062 kB / 0.5659 GB, free: 42.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001262/0.6033, allocations: 1.153 MB / 0.5671 GB, free: 41.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005219/0.6038, allocations: 69.55 kB / 0.5671 GB, free: 41.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003064/0.6069, allocations: 2.412 MB / 0.5695 GB, free: 39.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.6073, allocations: 1.024 MB / 0.5705 GB, free: 38.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002193/0.6075, allocations: 63.42 kB / 0.5705 GB, free: 38.02 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.6075, allocations: 0 / 0.5705 GB, free: 38.02 MB / 378.7 MB Notification: Performance of Templates: time 0.06351/0.671, allocations: 26.17 MB / 0.5961 GB, free: 11.82 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.FluxTubes.Examples.LinearInductorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductorCalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductorTypes.h:38:9: error: unknown type name '_omcQComplexOutput_24currentSensorQS_24iType' typedef _omcQComplexOutput_24currentSensorQS_24iType _omcQComplexOutput_24currentSensorQS_24iRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductorCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductorFunctions.h:17:91: error: unknown type name '_omcQComplexOutput_24currentSensorQS_24iType' void /*RecordTypetest*/ _omcQComplexOutput_24currentSensorQS_24i(double re_, double im_,_omcQComplexOutput_24currentSensorQS_24iType &output ); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductorFunctions.cpp:46:82: error: unknown type name '_omcQComplexOutput_24currentSensorQS_24iType' void Functions::_omcQComplexOutput_24currentSensorQS_24i(double re_, double im_, _omcQComplexOutput_24currentSensorQS_24iType& output) ^ 3 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductorCalcHelperMain.o] Error 1