Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 180.2 kB / 16.38 MB, free: 5.762 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.265/1.265, allocations: 223.2 MB / 240.3 MB, free: 11.87 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.0008805/0.0008805, allocations: 104 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002356/0.0002356, allocations: 11.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2259, allocations: 50.4 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1049/0.3308, allocations: 88.24 MB / 489.7 MB, free: 8.258 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.3311, allocations: 96.66 kB / 489.8 MB, free: 8.164 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2521/0.5832, allocations: 35.6 MB / 0.5131 GB, free: 87.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.5833, allocations: 1.312 kB / 0.5131 GB, free: 87.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.279e-05/0.5833, allocations: 22.62 kB / 0.5131 GB, free: 87.51 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.003941/0.5872, allocations: 1.516 MB / 0.5146 GB, free: 86.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.5873, allocations: 10.98 kB / 0.5146 GB, free: 86.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002815/0.5901, allocations: 462.4 kB / 0.5151 GB, free: 86.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000211/0.5903, allocations: 296.8 kB / 0.5154 GB, free: 86.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.918e-05/0.5904, allocations: 103.9 kB / 0.5155 GB, free: 86.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001445/0.5905, allocations: 128.8 kB / 0.5156 GB, free: 86.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.5924, allocations: 1.3 MB / 0.5168 GB, free: 86.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/0.5925, allocations: 5.062 kB / 0.5169 GB, free: 86.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.685e-05/0.5926, allocations: 53.17 kB / 0.5169 GB, free: 86.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.5926, allocations: 32.69 kB / 0.5169 GB, free: 86.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002063/0.5947, allocations: 1.235 MB / 0.5181 GB, free: 86.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005693/0.6004, allocations: 4.26 MB / 0.5223 GB, free: 84.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001813/0.6022, allocations: 2.288 MB / 0.5245 GB, free: 82.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001045/0.6024, allocations: 116.9 kB / 0.5246 GB, free: 82.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.6024, allocations: 47.44 kB / 0.5247 GB, free: 82.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 3.657e-06/0.6024, allocations: 0 / 0.5247 GB, free: 82.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.009766/0.6122, allocations: 4.063 MB / 0.5287 GB, free: 80.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.6122, allocations: 90.11 kB / 0.5287 GB, free: 80.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/0.6126, allocations: 346.4 kB / 0.5291 GB, free: 80.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.627e-05/0.6126, allocations: 45.7 kB / 0.5291 GB, free: 80.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001542/0.6128, allocations: 448.3 kB / 0.5295 GB, free: 79.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001931/0.613, allocations: 430.8 kB / 0.53 GB, free: 79.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.374e-05/0.613, allocations: 32 kB / 0.53 GB, free: 79.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.208e-05/0.6131, allocations: 373.1 kB / 0.5303 GB, free: 79.05 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009296/0.6141, allocations: 455.9 kB / 0.5308 GB, free: 78.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009995/0.6151, allocations: 0.7128 MB / 0.5315 GB, free: 77.94 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001044/0.6161, allocations: 0.5341 MB / 0.532 GB, free: 77.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.6161, allocations: 3.938 kB / 0.532 GB, free: 77.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002585/0.6187, allocations: 1.509 MB / 0.5335 GB, free: 76.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.6188, allocations: 8 kB / 0.5335 GB, free: 76.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.6188, allocations: 4 kB / 0.5335 GB, free: 76.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004583/0.6192, allocations: 212.7 kB / 0.5337 GB, free: 75.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.6204, allocations: 299.2 kB / 0.534 GB, free: 75.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003034/0.6235, allocations: 4.097 MB / 0.538 GB, free: 71.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008717/0.6244, allocations: 82.02 kB / 0.5381 GB, free: 71.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.667e-05/0.6245, allocations: 59.25 kB / 0.5381 GB, free: 71.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (146): * Single equations (assignments): 144 * 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 {(2,100.0%) 11,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003715/0.6248, allocations: 269.5 kB / 0.5384 GB, free: 71.06 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.6249, allocations: 74.47 kB / 0.5384 GB, free: 71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002667/0.6276, allocations: 1.399 MB / 0.5398 GB, free: 69.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.664e-06/0.6276, allocations: 15.94 kB / 0.5398 GB, free: 69.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.6277, allocations: 4 kB / 0.5398 GB, free: 69.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.6277, allocations: 10.52 kB / 0.5398 GB, free: 69.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00365/0.6313, allocations: 2.546 MB / 0.5423 GB, free: 67.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.6313, allocations: 0 / 0.5423 GB, free: 67.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009493/0.6323, allocations: 227.1 kB / 0.5425 GB, free: 67.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003601/0.6327, allocations: 180.1 kB / 0.5427 GB, free: 67.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.819e-05/0.6327, allocations: 31.42 kB / 0.5427 GB, free: 67.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002677/0.6354, allocations: 3.975 MB / 0.5466 GB, free: 63.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6354, allocations: 13.77 kB / 0.5466 GB, free: 63.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003242/0.6387, allocations: 1.962 MB / 0.5485 GB, free: 61.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002621/0.639, allocations: 228.2 kB / 0.5488 GB, free: 61.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.59e-05/0.6391, allocations: 24 kB / 0.5488 GB, free: 61.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006761/0.6397, allocations: 76 kB / 0.5489 GB, free: 61.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.6399, allocations: 84.88 kB / 0.5489 GB, free: 60.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.636e-05/0.64, allocations: 39.94 kB / 0.549 GB, free: 60.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002115/0.6402, allocations: 267.2 kB / 0.5492 GB, free: 60.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6402, allocations: 0 / 0.5492 GB, free: 60.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009613/0.6411, allocations: 312.1 kB / 0.5495 GB, free: 60.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (104): * Single equations (assignments): 102 * 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 {(2,100.0%) 10,(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002605/0.6414, allocations: 204.8 kB / 0.5497 GB, free: 60.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002523/0.6439, allocations: 1.511 MB / 0.5512 GB, free: 58.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.644, allocations: 3.938 kB / 0.5512 GB, free: 58.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001247/0.6452, allocations: 0.9128 MB / 0.5521 GB, free: 57.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.6455, allocations: 45.66 kB / 0.5521 GB, free: 57.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002987/0.6485, allocations: 2.278 MB / 0.5544 GB, free: 55.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.6489, allocations: 1.032 MB / 0.5554 GB, free: 54.25 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006956/0.6496, allocations: 142.8 kB / 0.5555 GB, free: 54.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.6498, allocations: 75.41 kB / 0.5556 GB, free: 54.03 MB / 378.7 MB Notification: Performance of SimCode: time 4.2e-07/0.6498, allocations: 0 / 0.5556 GB, free: 54.03 MB / 378.7 MB Notification: Performance of Templates: time 0.01353/0.6633, allocations: 9.572 MB / 0.5649 GB, free: 44.53 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=4 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_model.h:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_functions.h:388:1: error: unknown type name '_omcQComplexOutput_24voltageSensor_24v' _omcQComplexOutput_24voltageSensor_24v omc__omcQComplexOutput_24voltageSensor_24v (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 1 error generated. make: *** [: Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.o] Error 1