Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001376/0.001376, allocations: 199.6 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007223/0.0007223, allocations: 99.81 kB / 297.4 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002084/0.0002084, allocations: 4 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.1987, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09398/0.2927, allocations: 88.39 MB / 497.1 MB, free: 3.188 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.293, allocations: 95.94 kB / 497.2 MB, free: 3.094 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.22/0.513, allocations: 27.11 MB / 0.512 GB, free: 87.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.513, allocations: 0 / 0.512 GB, free: 87.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.5131, allocations: 15.78 kB / 0.512 GB, free: 87.21 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.002772/0.5158, allocations: 1.133 MB / 0.5131 GB, free: 86.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.5159, allocations: 13.06 kB / 0.5131 GB, free: 86.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00186/0.5178, allocations: 317 kB / 0.5134 GB, free: 86.6 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000174/0.5179, allocations: 266.2 kB / 0.5137 GB, free: 86.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.702e-05/0.518, allocations: 62.91 kB / 0.5137 GB, free: 86.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.5181, allocations: 80.94 kB / 0.5138 GB, free: 86.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.5195, allocations: 0.8856 MB / 0.5147 GB, free: 86.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.884e-05/0.5196, allocations: 192 / 0.5147 GB, free: 86.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.316e-05/0.5196, allocations: 39.12 kB / 0.5147 GB, free: 86.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.5197, allocations: 22.62 kB / 0.5147 GB, free: 86.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001545/0.5212, allocations: 0.8335 MB / 0.5155 GB, free: 86.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003591/0.5248, allocations: 3.061 MB / 0.5185 GB, free: 84.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000983/0.5258, allocations: 1.015 MB / 0.5195 GB, free: 84.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000464/0.5263, allocations: 251.3 kB / 0.5198 GB, free: 84.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001272/0.5264, allocations: 177.3 kB / 0.5199 GB, free: 83.99 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.5265, allocations: 42.81 kB / 0.52 GB, free: 83.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 2.354e-06/0.5265, allocations: 0.6562 kB / 0.52 GB, free: 83.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.007177/0.5337, allocations: 2.687 MB / 0.5226 GB, free: 82.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.5337, allocations: 87.89 kB / 0.5227 GB, free: 82.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002594/0.534, allocations: 305 kB / 0.523 GB, free: 82.55 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.424e-05/0.534, allocations: 33.7 kB / 0.523 GB, free: 82.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.5342, allocations: 370.9 kB / 0.5234 GB, free: 82.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.788e-05/0.5343, allocations: 206.7 kB / 0.5235 GB, free: 82.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.5343, allocations: 19.91 kB / 0.5236 GB, free: 82.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.955e-05/0.5344, allocations: 344 kB / 0.5239 GB, free: 81.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006924/0.5351, allocations: 289.7 kB / 0.5242 GB, free: 81.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000764/0.5358, allocations: 0.5263 MB / 0.5247 GB, free: 81.26 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/0.5373, allocations: 0.8511 MB / 0.5255 GB, free: 80.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.5373, allocations: 3.531 kB / 0.5255 GB, free: 80.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001852/0.5392, allocations: 0.9403 MB / 0.5264 GB, free: 80.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.5392, allocations: 7.375 kB / 0.5264 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.5392, allocations: 7.438 kB / 0.5265 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002188/0.5395, allocations: 64.69 kB / 0.5265 GB, free: 80.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008251/0.5403, allocations: 227 kB / 0.5267 GB, free: 80.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.5416, allocations: 2.663 MB / 0.5293 GB, free: 77.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006464/0.5423, allocations: 77.86 kB / 0.5294 GB, free: 77.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.567e-05/0.5424, allocations: 39.41 kB / 0.5294 GB, free: 77.61 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002809/0.5426, allocations: 221.4 kB / 0.5297 GB, free: 77.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.778e-05/0.5427, allocations: 37 kB / 0.5297 GB, free: 77.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001755/0.5445, allocations: 0.7913 MB / 0.5305 GB, free: 77.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.5445, allocations: 6.812 kB / 0.5305 GB, free: 77.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.5445, allocations: 0 / 0.5305 GB, free: 77.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.5445, allocations: 3.844 kB / 0.5305 GB, free: 77.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002319/0.5468, allocations: 1.46 MB / 0.5319 GB, free: 75.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.5469, allocations: 0 / 0.5319 GB, free: 75.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006253/0.5475, allocations: 149.9 kB / 0.532 GB, free: 75.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001476/0.5476, allocations: 56.81 kB / 0.5321 GB, free: 75.79 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.888e-05/0.5477, allocations: 19.55 kB / 0.5321 GB, free: 75.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/0.5489, allocations: 2.649 MB / 0.5347 GB, free: 72.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5489, allocations: 0 / 0.5347 GB, free: 72.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002279/0.5512, allocations: 1.149 MB / 0.5358 GB, free: 71.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/0.5514, allocations: 167.5 kB / 0.536 GB, free: 71.72 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.899e-05/0.5514, allocations: 15.38 kB / 0.536 GB, free: 71.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004715/0.5519, allocations: 65.8 kB / 0.5361 GB, free: 71.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.552, allocations: 49.31 kB / 0.5361 GB, free: 71.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.614e-05/0.5521, allocations: 19.19 kB / 0.5361 GB, free: 71.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001674/0.5522, allocations: 208.9 kB / 0.5363 GB, free: 71.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5522, allocations: 0 / 0.5363 GB, free: 71.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006697/0.5529, allocations: 195.8 kB / 0.5365 GB, free: 71.25 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSensor.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 (58): * Single equations (assignments): 56 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002515/0.5532, allocations: 181.1 kB / 0.5367 GB, free: 71.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.5549, allocations: 0.9551 MB / 0.5376 GB, free: 70.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.5549, allocations: 0 / 0.5376 GB, free: 70.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008539/0.5558, allocations: 0.5813 MB / 0.5382 GB, free: 69.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003773/0.5562, allocations: 48.53 kB / 0.5382 GB, free: 69.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.5584, allocations: 1.538 MB / 0.5397 GB, free: 68.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.5586, allocations: 0.8776 MB / 0.5406 GB, free: 67.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002225/0.5588, allocations: 61.56 kB / 0.5406 GB, free: 67.32 MB / 378.7 MB Notification: Performance of SimCode: time 2.054e-06/0.5589, allocations: 4 kB / 0.5407 GB, free: 67.32 MB / 378.7 MB Notification: Performance of Templates: time 0.0114/0.5703, allocations: 13.07 MB / 0.5534 GB, free: 55.11 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.makefile make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.BasicExamples.ToroidalCoreAirgapCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgapCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgapCalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgapTypes.h:31:9: error: unknown type name '_omcQComplexOutput_24voltageSensor_24vType' typedef _omcQComplexOutput_24voltageSensor_24vType _omcQComplexOutput_24voltageSensor_24vRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgapCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgapFunctions.h:18:89: error: unknown type name '_omcQComplexOutput_24voltageSensor_24vType' void /*RecordTypetest*/ _omcQComplexOutput_24voltageSensor_24v(double re_, double im_,_omcQComplexOutput_24voltageSensor_24vType &output ); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgapCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgapFunctions.cpp:54:80: error: unknown type name '_omcQComplexOutput_24voltageSensor_24vType' void Functions::_omcQComplexOutput_24voltageSensor_24v(double re_, double im_, _omcQComplexOutput_24voltageSensor_24vType& output) ^ 3 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgapCalcHelperMain.o] Error 1