Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001173/0.001173, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.243/1.243, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008058/0.0008058, allocations: 95.19 kB / 291.5 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002337/0.0002337, allocations: 8 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2406/0.2409, allocations: 50.4 MB / 401.5 MB, free: 32.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1012/0.3421, allocations: 82.81 MB / 484.3 MB, free: 13.7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.3424, allocations: 89.08 kB / 484.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03685/0.3793, allocations: 15.56 MB / 500 MB, free: 13.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3793, allocations: 0 / 500 MB, free: 13.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.556e-05/0.3793, allocations: 8 kB / 500 MB, free: 13.88 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.001571/0.3809, allocations: 0.7532 MB / 0.489 GB, free: 13.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.381, allocations: 12.03 kB / 0.489 GB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002309/0.3833, allocations: 359 kB / 0.4893 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003983/0.3837, allocations: 306.3 kB / 0.4896 GB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.681e-05/0.3838, allocations: 41.31 kB / 0.4897 GB, free: 12.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.984e-05/0.3838, allocations: 51.98 kB / 0.4897 GB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009873/0.3848, allocations: 0.5063 MB / 0.4902 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.3849, allocations: 0 / 0.4902 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.736e-05/0.3849, allocations: 24 kB / 0.4902 GB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.376e-05/0.385, allocations: 12 kB / 0.4902 GB, free: 11.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.386, allocations: 0.5828 MB / 0.4908 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003003/0.389, allocations: 1.889 MB / 0.4927 GB, free: 9.148 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001974/0.391, allocations: 2.182 MB / 0.4948 GB, free: 6.582 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.722e-05/0.3911, allocations: 93.53 kB / 0.4949 GB, free: 6.473 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/0.3912, allocations: 35 kB / 0.4949 GB, free: 6.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=47): time 2.464e-06/0.3912, allocations: 0 / 0.4949 GB, free: 6.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.001752/0.3929, allocations: 0.7937 MB / 0.4957 GB, free: 5.605 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.194e-05/0.393, allocations: 59.84 kB / 0.4957 GB, free: 5.535 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.3932, allocations: 162 kB / 0.4959 GB, free: 5.371 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.918e-05/0.3932, allocations: 29.7 kB / 0.4959 GB, free: 5.336 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.3933, allocations: 216.5 kB / 0.4961 GB, free: 5.117 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001042/0.3934, allocations: 161.7 kB / 0.4963 GB, free: 4.957 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.069e-05/0.3935, allocations: 8 kB / 0.4963 GB, free: 4.949 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.3936, allocations: 342.8 kB / 0.4966 GB, free: 4.605 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.3939, allocations: 157 kB / 0.4968 GB, free: 4.453 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000319/0.3942, allocations: 224.8 kB / 0.497 GB, free: 4.211 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003232/0.3945, allocations: 180.7 kB / 0.4972 GB, free: 4.039 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3945, allocations: 4 kB / 0.4972 GB, free: 4.035 MB / 378.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009543/0.3955, allocations: 0.5357 MB / 0.4977 GB, free: 3.488 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.176e-05/0.3955, allocations: 4 kB / 0.4977 GB, free: 3.484 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.3956, allocations: 11.92 kB / 0.4977 GB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003592/0.3959, allocations: 88.73 kB / 0.4978 GB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003835/0.3963, allocations: 99.89 kB / 0.4979 GB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002011/0.3983, allocations: 1.87 MB / 0.4997 GB, free: 1.273 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002703/0.3986, allocations: 43.59 kB / 0.4997 GB, free: 1.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.475e-05/0.3987, allocations: 20 kB / 0.4998 GB, free: 1.211 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.0002305/0.3989, allocations: 169.8 kB / 0.4999 GB, free: 1.035 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.753e-05/0.399, allocations: 31.66 kB / 0.5 GB, free: 1.004 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001018/0.4, allocations: 0.5434 MB / 0.5005 GB, free: 460 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.4, allocations: 8 kB / 0.5005 GB, free: 452 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.4, allocations: 3.953 kB / 0.5005 GB, free: 448 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4, allocations: 3.984 kB / 0.5005 GB, free: 444 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2031/0.6031, allocations: 1.115 MB / 0.5016 GB, free: 94.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.6032, allocations: 0 / 0.5016 GB, free: 94.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003774/0.6036, allocations: 77.92 kB / 0.5017 GB, free: 94.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003147/0.6039, allocations: 91.53 kB / 0.5018 GB, free: 94.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.079e-05/0.6039, allocations: 11.52 kB / 0.5018 GB, free: 94.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001749/0.6057, allocations: 1.862 MB / 0.5036 GB, free: 93.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.6057, allocations: 5.406 kB / 0.5036 GB, free: 93.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.607, allocations: 0.7962 MB / 0.5044 GB, free: 92.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.346e-05/0.6071, allocations: 112.5 kB / 0.5045 GB, free: 92.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.577e-05/0.6072, allocations: 6.031 kB / 0.5045 GB, free: 92.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002411/0.6074, allocations: 21.77 kB / 0.5045 GB, free: 92.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.6075, allocations: 36.52 kB / 0.5045 GB, free: 92.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.6075, allocations: 13.39 kB / 0.5045 GB, free: 92.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001015/0.6077, allocations: 136.6 kB / 0.5047 GB, free: 92.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.6077, allocations: 0 / 0.5047 GB, free: 92.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006505/0.6083, allocations: 155.2 kB / 0.5048 GB, free: 92.77 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.0002665/0.6086, allocations: 152.9 kB / 0.505 GB, free: 92.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.6098, allocations: 0.5726 MB / 0.5055 GB, free: 92.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.6098, allocations: 0 / 0.5055 GB, free: 92.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000568/0.6104, allocations: 384.1 kB / 0.5059 GB, free: 92.44 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.6106, allocations: 28.56 kB / 0.5059 GB, free: 92.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.6121, allocations: 1.013 MB / 0.5069 GB, free: 91.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002055/0.6123, allocations: 0.8104 MB / 0.5077 GB, free: 91.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002002/0.6125, allocations: 48.17 kB / 0.5078 GB, free: 91.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.246e-05/0.6126, allocations: 30.78 kB / 0.5078 GB, free: 91.23 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.6126, allocations: 0 / 0.5078 GB, free: 91.23 MB / 378.7 MB Notification: Performance of Templates: time 0.006852/0.6194, allocations: 3.84 MB / 0.5115 GB, free: 90.99 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.makefile make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=2 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.o Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.c In file included from Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.c:7: In file included from ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_model.h:24: ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_functions.h:248:1: error: unknown type name '_omcQComplexOutput_24currentSensor_24i' _omcQComplexOutput_24currentSensor_24i omc__omcQComplexOutput_24currentSensor_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 1 error generated. make: *** [: Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.o] Error 1