Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|r_mLeak.port_p.Phi|rootMeanSquare.mean.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 179.3 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.207/1.207, allocations: 223.2 MB / 240.3 MB, free: 11.86 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.0008358/0.0008358, allocations: 94.44 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002482/0.0002481, allocations: 12 kB / 351.1 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.2206, allocations: 50.4 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1035/0.3242, allocations: 93.19 MB / 494.7 MB, free: 3.262 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002003/0.3244, allocations: 87.95 kB / 494.8 MB, free: 3.176 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2363/0.5608, allocations: 30.27 MB / 0.5127 GB, free: 90.38 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.5608, allocations: 4 kB / 0.5127 GB, free: 90.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.336e-05/0.5608, allocations: 19.12 kB / 0.5128 GB, free: 90.37 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.002764/0.5636, allocations: 1.274 MB / 0.514 GB, free: 89.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.5636, allocations: 7.875 kB / 0.514 GB, free: 89.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002261/0.5659, allocations: 393.2 kB / 0.5144 GB, free: 89.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000569/0.5665, allocations: 494.2 kB / 0.5149 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.432e-05/0.5665, allocations: 85.44 kB / 0.5149 GB, free: 89.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.5667, allocations: 116 kB / 0.5151 GB, free: 89.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.5682, allocations: 0.9617 MB / 0.516 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.124e-05/0.5682, allocations: 3.938 kB / 0.516 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.778e-05/0.5683, allocations: 43.28 kB / 0.516 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.5683, allocations: 29.56 kB / 0.5161 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.5699, allocations: 0.9789 MB / 0.517 GB, free: 89.28 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004583/0.5745, allocations: 3.733 MB / 0.5207 GB, free: 87.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.5759, allocations: 1.543 MB / 0.5222 GB, free: 86.07 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.535e-05/0.576, allocations: 105.9 kB / 0.5223 GB, free: 85.97 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006971/0.5767, allocations: 472.6 kB / 0.5227 GB, free: 85.74 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 2.695e-06/0.5768, allocations: 0 / 0.5227 GB, free: 85.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.007158/0.5839, allocations: 3.91 MB / 0.5265 GB, free: 83.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.584, allocations: 149.5 kB / 0.5267 GB, free: 83.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003316/0.5843, allocations: 346.5 kB / 0.527 GB, free: 83.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.567e-05/0.5844, allocations: 45.7 kB / 0.5271 GB, free: 83.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.5846, allocations: 413.1 kB / 0.5275 GB, free: 82.74 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001987/0.5848, allocations: 419.7 kB / 0.5279 GB, free: 82.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.5849, allocations: 24 kB / 0.5279 GB, free: 82.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.049e-05/0.585, allocations: 383.8 kB / 0.5282 GB, free: 81.99 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005761/0.5856, allocations: 351.8 kB / 0.5286 GB, free: 81.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006371/0.5862, allocations: 0.5308 MB / 0.5291 GB, free: 81.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006519/0.5869, allocations: 430.7 kB / 0.5295 GB, free: 80.73 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.5869, allocations: 4 kB / 0.5295 GB, free: 80.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.00205/0.589, allocations: 1.361 MB / 0.5308 GB, free: 79.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.589, allocations: 10.81 kB / 0.5309 GB, free: 79.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.589, allocations: 4 kB / 0.5309 GB, free: 79.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007392/0.5897, allocations: 342.1 kB / 0.5312 GB, free: 79.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007982/0.5906, allocations: 200.8 kB / 0.5314 GB, free: 79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005429/0.596, allocations: 7.797 MB / 0.539 GB, free: 71.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007119/0.5967, allocations: 50.83 kB / 0.539 GB, free: 71.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.374e-05/0.5968, allocations: 44 kB / 0.5391 GB, free: 70.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004029/0.5972, allocations: 260.8 kB / 0.5393 GB, free: 70.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.652e-05/0.5973, allocations: 75.11 kB / 0.5394 GB, free: 70.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002091/0.5994, allocations: 1.283 MB / 0.5407 GB, free: 69.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.5994, allocations: 15.95 kB / 0.5407 GB, free: 69.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.5994, allocations: 8 kB / 0.5407 GB, free: 69.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.5994, allocations: 7.266 kB / 0.5407 GB, free: 69.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003164/0.6026, allocations: 2.399 MB / 0.543 GB, free: 67.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.6026, allocations: 0 / 0.543 GB, free: 67.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006581/0.6033, allocations: 150.8 kB / 0.5432 GB, free: 67.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006955/0.604, allocations: 321.5 kB / 0.5435 GB, free: 67.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.371e-05/0.6041, allocations: 28 kB / 0.5435 GB, free: 66.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004979/0.6091, allocations: 7.53 MB / 0.5509 GB, free: 59.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.6091, allocations: 4.125 kB / 0.5509 GB, free: 59.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002482/0.6116, allocations: 1.782 MB / 0.5526 GB, free: 57.33 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002786/0.6119, allocations: 216.2 kB / 0.5528 GB, free: 57.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.487e-05/0.612, allocations: 31.19 kB / 0.5528 GB, free: 57.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004636/0.6124, allocations: 39.97 kB / 0.5529 GB, free: 57.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.6126, allocations: 92.81 kB / 0.553 GB, free: 56.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.238e-05/0.6126, allocations: 27.98 kB / 0.553 GB, free: 56.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002363/0.6129, allocations: 263.2 kB / 0.5532 GB, free: 56.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.192e-06/0.6129, allocations: 0 / 0.5532 GB, free: 56.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00108/0.614, allocations: 343.9 kB / 0.5536 GB, free: 56.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 4 {(1,100.0%) 2,(2,100.0%) 18,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003075/0.6143, allocations: 194.7 kB / 0.5538 GB, free: 56.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002194/0.6165, allocations: 1.608 MB / 0.5553 GB, free: 54.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.6165, allocations: 0 / 0.5553 GB, free: 54.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001251/0.6178, allocations: 1.137 MB / 0.5564 GB, free: 53.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.6181, allocations: 53.5 kB / 0.5565 GB, free: 53.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.6214, allocations: 2.359 MB / 0.5588 GB, free: 50.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000386/0.6218, allocations: 1.04 MB / 0.5598 GB, free: 49.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004634/0.6223, allocations: 94.02 kB / 0.5599 GB, free: 49.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/0.6224, allocations: 59.36 kB / 0.56 GB, free: 49.63 MB / 378.7 MB Notification: Performance of SimCode: time 4.4e-07/0.6224, allocations: 0 / 0.56 GB, free: 49.63 MB / 378.7 MB Notification: Performance of Templates: time 0.01507/0.6375, allocations: 10.22 MB / 0.5699 GB, free: 39.43 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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_LinearInductor -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=8 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_model.h:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_functions.h:413:1: error: unknown type name '_omcQComplexOutput_24currentSensorQS_24i' _omcQComplexOutput_24currentSensorQS_24i omc__omcQComplexOutput_24currentSensorQS_24i (threadData_t *threadData, modelica_real omc_re, modelica_real omc_im); ^ 1 error generated. make: *** [: Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.o] Error 1