Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.NonLinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|fundamentalWavePermabilitySensor.harmonicFlux.mean1.x|fundamentalWavePermabilitySensor.harmonicFlux.mean2.x|fundamentalWavePermabilitySensor.harmonicPotential.mean1.x|fundamentalWavePermabilitySensor.harmonicPotential.mean2.x|r_mLeak.port_p.Phi|rootMeanSquare.mean1.x|rootMeanSquare.mean2.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|fundamentalWavePermabilitySensor.harmonicFlux.mean1.x|fundamentalWavePermabilitySensor.harmonicFlux.mean2.x|fundamentalWavePermabilitySensor.harmonicPotential.mean1.x|fundamentalWavePermabilitySensor.harmonicPotential.mean2.x|r_mLeak.port_p.Phi|rootMeanSquare.mean1.x|rootMeanSquare.mean2.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 202.6 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.314/1.314, allocations: 226.5 MB / 245.4 MB, free: 8.176 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008166/0.0008166, allocations: 100 kB / 297.4 MB, free: 6.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002168/0.0002168, allocations: 12 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1995/0.1997, allocations: 51.28 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1095/0.3092, allocations: 96.86 MB / 0.4937 GB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003162/0.3096, allocations: 91.94 kB / 0.4938 GB, free: 10.62 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2575/0.5672, allocations: 38.46 MB / 0.5313 GB, free: 81.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.923e-06/0.5672, allocations: 0 / 0.5313 GB, free: 81.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.885e-05/0.5673, allocations: 28 kB / 0.5313 GB, free: 81.12 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: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.003774/0.5711, allocations: 1.717 MB / 0.533 GB, free: 79.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.5711, allocations: 8.031 kB / 0.533 GB, free: 79.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00286/0.574, allocations: 0.5376 MB / 0.5336 GB, free: 78.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001068/0.5751, allocations: 0.7784 MB / 0.5343 GB, free: 77.97 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.5752, allocations: 145.7 kB / 0.5344 GB, free: 77.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/0.5754, allocations: 159.9 kB / 0.5346 GB, free: 77.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002293/0.5777, allocations: 1.35 MB / 0.5359 GB, free: 76.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.107e-05/0.5777, allocations: 4 kB / 0.5359 GB, free: 76.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001242/0.5779, allocations: 63.98 kB / 0.536 GB, free: 76.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.968e-05/0.5779, allocations: 36 kB / 0.536 GB, free: 76.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002319/0.5802, allocations: 1.335 MB / 0.5373 GB, free: 74.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006777/0.587, allocations: 5.062 MB / 0.5423 GB, free: 69.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002353/0.5894, allocations: 1.936 MB / 0.5442 GB, free: 67.46 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009335/0.5903, allocations: 0.5846 MB / 0.5447 GB, free: 66.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001581/0.5905, allocations: 199.2 kB / 0.5449 GB, free: 66.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001168/0.5917, allocations: 0.772 MB / 0.5457 GB, free: 65.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 3.687e-06/0.5917, allocations: 0 / 0.5457 GB, free: 65.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.01277/0.6045, allocations: 6.034 MB / 0.5516 GB, free: 59.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.6046, allocations: 226.9 kB / 0.5518 GB, free: 59.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007055/0.6053, allocations: 0.6371 MB / 0.5524 GB, free: 58.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.064e-05/0.6054, allocations: 57.7 kB / 0.5525 GB, free: 58.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003552/0.6058, allocations: 0.5818 MB / 0.553 GB, free: 58.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003037/0.6061, allocations: 0.5346 MB / 0.5535 GB, free: 57.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.922e-05/0.6062, allocations: 32 kB / 0.5536 GB, free: 57.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.6063, allocations: 414.7 kB / 0.554 GB, free: 57.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/0.6073, allocations: 0.5231 MB / 0.5545 GB, free: 56.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/0.6085, allocations: 0.8653 MB / 0.5553 GB, free: 55.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002109/0.6106, allocations: 1.453 MB / 0.5568 GB, free: 54.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.6106, allocations: 4 kB / 0.5568 GB, free: 54.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003908/0.6145, allocations: 2.039 MB / 0.5587 GB, free: 51.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.6145, allocations: 8 kB / 0.5588 GB, free: 51.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.562e-05/0.6146, allocations: 8 kB / 0.5588 GB, free: 51.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/0.6165, allocations: 0.5263 MB / 0.5593 GB, free: 51.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.6176, allocations: 287.5 kB / 0.5595 GB, free: 51.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008022/0.6256, allocations: 8.606 MB / 0.568 GB, free: 41.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/0.6268, allocations: 91.88 kB / 0.568 GB, free: 41.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.627, allocations: 63.98 kB / 0.5681 GB, free: 41.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.rootMeanSquare.mean1.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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: 3 {(1,100.0%) 9,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007591/0.6277, allocations: 353.4 kB / 0.5684 GB, free: 41.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.6279, allocations: 110.7 kB / 0.5685 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003904/0.6318, allocations: 1.887 MB / 0.5704 GB, free: 39.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.6319, allocations: 20 kB / 0.5704 GB, free: 39.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/0.6319, allocations: 12 kB / 0.5704 GB, free: 39.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.6319, allocations: 7.969 kB / 0.5704 GB, free: 39.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005652/0.6376, allocations: 3.704 MB / 0.574 GB, free: 35.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.6376, allocations: 0 / 0.574 GB, free: 35.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008736/0.6385, allocations: 207.8 kB / 0.5742 GB, free: 35.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001827/0.6403, allocations: 0.5031 MB / 0.5747 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.6404, allocations: 47.91 kB / 0.5748 GB, free: 34.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007215/0.6476, allocations: 8.328 MB / 0.5829 GB, free: 26.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6477, allocations: 4 kB / 0.5829 GB, free: 26.01 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004904/0.6526, allocations: 2.63 MB / 0.5855 GB, free: 23.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004737/0.6531, allocations: 295.6 kB / 0.5858 GB, free: 23.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001783/0.6533, allocations: 39.92 kB / 0.5858 GB, free: 22.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007262/0.654, allocations: 67.97 kB / 0.5859 GB, free: 22.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.6542, allocations: 129.1 kB / 0.586 GB, free: 22.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.888e-05/0.6543, allocations: 47.97 kB / 0.586 GB, free: 22.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004976/0.6548, allocations: 443 kB / 0.5865 GB, free: 22.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6548, allocations: 0 / 0.5865 GB, free: 22.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001481/0.6563, allocations: 439.9 kB / 0.5869 GB, free: 21.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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: 3 {(1,100.0%) 9,(2,100.0%) 18,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003657/0.6567, allocations: 229.1 kB / 0.5871 GB, free: 21.65 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003202/0.6599, allocations: 2.11 MB / 0.5892 GB, free: 19.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.6599, allocations: 4.188 kB / 0.5892 GB, free: 19.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001927/0.6619, allocations: 1.451 MB / 0.5906 GB, free: 17.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008068/0.6627, allocations: 119.8 kB / 0.5907 GB, free: 17.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004763/0.6675, allocations: 3.388 MB / 0.594 GB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007063/0.6682, allocations: 1.193 MB / 0.5952 GB, free: 13.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003519/0.6686, allocations: 99.39 kB / 0.5953 GB, free: 13.1 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.6686, allocations: 0 / 0.5953 GB, free: 13.1 MB / 378.7 MB Notification: Performance of Templates: time 0.03927/0.7078, allocations: 40.22 MB / 0.6345 GB, free: 4.848 MB / 410.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.NonLinearInductorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductorCalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductorTypes.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.NonLinearInductorCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductorFunctions.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.NonLinearInductorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductorFunctions.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.NonLinearInductorCalcHelperMain.o] Error 1