Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.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.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inductor.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009835/0.0009834, allocations: 200.2 kB / 18.06 MB, free: 3.742 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 226.5 MB / 245.4 MB, free: 8.164 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007934/0.0007934, allocations: 104.5 kB / 297.4 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001993/0.0001994, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1886/0.1888, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08688/0.2757, allocations: 83.64 MB / 492.3 MB, free: 7.988 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001944/0.276, allocations: 84.58 kB / 492.4 MB, free: 7.906 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03499/0.311, allocations: 16.21 MB / 0.4967 GB, free: 7.527 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.311, allocations: 0 / 0.4967 GB, free: 7.527 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.516e-05/0.311, allocations: 12 kB / 0.4967 GB, free: 7.516 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.001434/0.3125, allocations: 0.7571 MB / 0.4974 GB, free: 6.707 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.3125, allocations: 8.031 kB / 0.4974 GB, free: 6.699 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002178/0.3147, allocations: 364 kB / 0.4978 GB, free: 6.344 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003346/0.315, allocations: 307.7 kB / 0.4981 GB, free: 6.004 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.611e-05/0.3151, allocations: 37.69 kB / 0.4981 GB, free: 5.965 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.78e-05/0.3152, allocations: 52.38 kB / 0.4982 GB, free: 5.914 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008391/0.316, allocations: 0.5107 MB / 0.4987 GB, free: 5.398 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/0.316, allocations: 4.094 kB / 0.4987 GB, free: 5.395 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.235e-05/0.3161, allocations: 23.94 kB / 0.4987 GB, free: 5.371 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.3161, allocations: 12 kB / 0.4987 GB, free: 5.359 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009156/0.317, allocations: 0.579 MB / 0.4993 GB, free: 4.781 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002594/0.3196, allocations: 1.968 MB / 0.5012 GB, free: 2.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001744/0.3214, allocations: 2.189 MB / 0.5033 GB, free: 104 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1595/0.4809, allocations: 209.2 kB / 0.5035 GB, free: 90.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001793/0.4812, allocations: 169.9 kB / 0.5037 GB, free: 90.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.4812, allocations: 37.47 kB / 0.5037 GB, free: 90.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=47): time 3.276e-06/0.4812, allocations: 1.188 kB / 0.5037 GB, free: 90.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.002115/0.4833, allocations: 0.795 MB / 0.5045 GB, free: 90.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.52e-05/0.4834, allocations: 60.02 kB / 0.5046 GB, free: 90.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.4836, allocations: 181.7 kB / 0.5047 GB, free: 89.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.4836, allocations: 35.92 kB / 0.5048 GB, free: 89.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.351e-05/0.4837, allocations: 217.7 kB / 0.505 GB, free: 89.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.4838, allocations: 159 kB / 0.5051 GB, free: 89.75 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-05/0.4839, allocations: 10.16 kB / 0.5051 GB, free: 89.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.482e-05/0.4839, allocations: 338.3 kB / 0.5055 GB, free: 89.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003016/0.4842, allocations: 151.8 kB / 0.5056 GB, free: 89.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000352/0.4846, allocations: 232.4 kB / 0.5058 GB, free: 89.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005949/0.4852, allocations: 408.4 kB / 0.5062 GB, free: 89.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.4852, allocations: 2.688 kB / 0.5062 GB, free: 89.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009392/0.4861, allocations: 0.5397 MB / 0.5067 GB, free: 89.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.4862, allocations: 5.25 kB / 0.5068 GB, free: 89.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.4862, allocations: 2.953 kB / 0.5068 GB, free: 89.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000351/0.4865, allocations: 91.38 kB / 0.5068 GB, free: 89.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004084/0.487, allocations: 94.39 kB / 0.5069 GB, free: 89.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001606/0.4886, allocations: 1.849 MB / 0.5087 GB, free: 87.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.4889, allocations: 45.88 kB / 0.5088 GB, free: 87.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.586e-05/0.4889, allocations: 19.44 kB / 0.5088 GB, free: 87.87 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (50): * Single equations (assignments): 49 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001985/0.4891, allocations: 167.6 kB / 0.509 GB, free: 87.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.818e-05/0.4892, allocations: 28.39 kB / 0.509 GB, free: 87.74 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.4904, allocations: 0.5493 MB / 0.5095 GB, free: 87.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.4904, allocations: 6.828 kB / 0.5095 GB, free: 87.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.4904, allocations: 2.469 kB / 0.5095 GB, free: 87.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.4904, allocations: 1.406 kB / 0.5095 GB, free: 87.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.4922, allocations: 1.114 MB / 0.5106 GB, free: 87.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.167e-06/0.4922, allocations: 3.312 kB / 0.5106 GB, free: 87.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.4925, allocations: 86.36 kB / 0.5107 GB, free: 87.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002762/0.4928, allocations: 86.12 kB / 0.5108 GB, free: 87.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.699e-05/0.4928, allocations: 11.72 kB / 0.5108 GB, free: 87.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.4942, allocations: 1.85 MB / 0.5126 GB, free: 85.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4943, allocations: 2.188 kB / 0.5126 GB, free: 85.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001113/0.4954, allocations: 0.7949 MB / 0.5134 GB, free: 85.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.849e-05/0.4954, allocations: 112.5 kB / 0.5135 GB, free: 85.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.579e-05/0.4955, allocations: 10.59 kB / 0.5135 GB, free: 85.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.4957, allocations: 24.36 kB / 0.5135 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.981e-05/0.4958, allocations: 31 kB / 0.5136 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.4958, allocations: 14.09 kB / 0.5136 GB, free: 85.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.946e-05/0.4959, allocations: 135.8 kB / 0.5137 GB, free: 85.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4959, allocations: 0 / 0.5137 GB, free: 85.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000597/0.4965, allocations: 166.8 kB / 0.5139 GB, free: 85.56 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (capacitor.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 (42): * Single equations (assignments): 41 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002207/0.4968, allocations: 157 kB / 0.514 GB, free: 85.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009107/0.4977, allocations: 0.5748 MB / 0.5146 GB, free: 85.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4977, allocations: 0 / 0.5146 GB, free: 85.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004523/0.4982, allocations: 386.1 kB / 0.5149 GB, free: 85.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003169/0.4985, allocations: 28.56 kB / 0.515 GB, free: 85.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.4996, allocations: 1.041 MB / 0.516 GB, free: 84.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.4998, allocations: 0.8065 MB / 0.5168 GB, free: 83.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.4999, allocations: 36.92 kB / 0.5168 GB, free: 83.92 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4999, allocations: 0 / 0.5168 GB, free: 83.92 MB / 378.7 MB Notification: Performance of Templates: time 0.006594/0.5065, allocations: 6.268 MB / 0.5229 GB, free: 83.51 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.makefile make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.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.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonanceCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonanceCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonanceCalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonanceTypes.h:26:9: error: unknown type name '_omcQComplexOutput_24currentSensor_24iType' typedef _omcQComplexOutput_24currentSensor_24iType _omcQComplexOutput_24currentSensor_24iRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonanceCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonanceFunctions.h:18:89: error: unknown type name '_omcQComplexOutput_24currentSensor_24iType' void /*RecordTypetest*/ _omcQComplexOutput_24currentSensor_24i(double re_, double im_,_omcQComplexOutput_24currentSensor_24iType &output ); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonanceCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonanceFunctions.cpp:53:80: error: unknown type name '_omcQComplexOutput_24currentSensor_24iType' void Functions::_omcQComplexOutput_24currentSensor_24i(double re_, double im_, _omcQComplexOutput_24currentSensor_24iType& output) ^ 3 errors generated. make: *** [: OMCppModelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonanceCalcHelperMain.o] Error 1