Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009902/0.0009903, allocations: 201.5 kB / 17.08 MB, free: 5.062 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: 227.2 MB / 245 MB, free: 7.473 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008288/0.0008288, allocations: 111.7 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002146/0.0002146, allocations: 4 kB / 357.9 MB, free: 9.527 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2134/0.2136, allocations: 51.48 MB / 409.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1147/0.3284, allocations: 94.13 MB / 0.4917 GB, free: 12.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003085/0.3287, allocations: 87.95 kB / 0.4918 GB, free: 12.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2637/0.5924, allocations: 31.63 MB / 0.5227 GB, free: 87.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5925, allocations: 0 / 0.5227 GB, free: 87.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.815e-05/0.5925, allocations: 23.5 kB / 0.5227 GB, free: 87.64 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.003249/0.5957, allocations: 1.281 MB / 0.524 GB, free: 86.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.5958, allocations: 11.7 kB / 0.524 GB, free: 86.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00257/0.5984, allocations: 416.4 kB / 0.5244 GB, free: 86.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006942/0.5991, allocations: 0.4885 MB / 0.5249 GB, free: 86.06 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.013e-05/0.5992, allocations: 84.88 kB / 0.525 GB, free: 86.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001526/0.5993, allocations: 108.7 kB / 0.5251 GB, free: 85.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.6009, allocations: 0.9678 MB / 0.526 GB, free: 85.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.292e-05/0.601, allocations: 3.906 kB / 0.526 GB, free: 85.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.963e-05/0.6011, allocations: 48 kB / 0.5261 GB, free: 84.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.6011, allocations: 24 kB / 0.5261 GB, free: 84.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001611/0.6027, allocations: 0.9769 MB / 0.527 GB, free: 83.97 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005182/0.6079, allocations: 3.827 MB / 0.5308 GB, free: 79.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/0.6095, allocations: 1.542 MB / 0.5323 GB, free: 78.24 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000133/0.6097, allocations: 191.1 kB / 0.5325 GB, free: 78.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006775/0.6104, allocations: 470.5 kB / 0.5329 GB, free: 77.54 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 2.385e-06/0.6104, allocations: 3.938 kB / 0.5329 GB, free: 77.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.007101/0.6175, allocations: 3.92 MB / 0.5367 GB, free: 73.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/0.6175, allocations: 145.5 kB / 0.5369 GB, free: 73.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003192/0.6179, allocations: 352.7 kB / 0.5372 GB, free: 72.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.273e-05/0.6179, allocations: 45.7 kB / 0.5373 GB, free: 72.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.6181, allocations: 423.7 kB / 0.5377 GB, free: 72.51 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002197/0.6183, allocations: 417.6 kB / 0.5381 GB, free: 72.11 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.65e-05/0.6184, allocations: 28 kB / 0.5381 GB, free: 72.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.185e-05/0.6185, allocations: 374.8 kB / 0.5384 GB, free: 71.71 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005785/0.6191, allocations: 350.4 kB / 0.5388 GB, free: 71.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006214/0.6197, allocations: 0.532 MB / 0.5393 GB, free: 70.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006684/0.6204, allocations: 432.8 kB / 0.5397 GB, free: 70.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.6204, allocations: 4 kB / 0.5397 GB, free: 70.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002007/0.6224, allocations: 1.361 MB / 0.541 GB, free: 68.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.6224, allocations: 8 kB / 0.541 GB, free: 68.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.6225, allocations: 4 kB / 0.5411 GB, free: 68.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007195/0.6232, allocations: 341.4 kB / 0.5414 GB, free: 68.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007872/0.624, allocations: 195.7 kB / 0.5416 GB, free: 68.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005486/0.6295, allocations: 7.799 MB / 0.5492 GB, free: 60.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006266/0.6301, allocations: 47.98 kB / 0.5492 GB, free: 60.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.941e-05/0.6302, allocations: 47.98 kB / 0.5493 GB, free: 60 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.0003633/0.6306, allocations: 257.5 kB / 0.5495 GB, free: 59.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.9e-05/0.6307, allocations: 71.22 kB / 0.5496 GB, free: 59.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/0.6327, allocations: 1.285 MB / 0.5508 GB, free: 58.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.6327, allocations: 15.98 kB / 0.5509 GB, free: 58.35 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.6328, allocations: 8 kB / 0.5509 GB, free: 58.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.6328, allocations: 3.984 kB / 0.5509 GB, free: 58.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003136/0.6359, allocations: 2.416 MB / 0.5532 GB, free: 55.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.6359, allocations: 4 kB / 0.5532 GB, free: 55.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000646/0.6366, allocations: 147.8 kB / 0.5534 GB, free: 55.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006687/0.6373, allocations: 315.2 kB / 0.5537 GB, free: 55.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.379e-05/0.6373, allocations: 27.98 kB / 0.5537 GB, free: 55.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004934/0.6423, allocations: 7.532 MB / 0.5611 GB, free: 47.33 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.6423, allocations: 7.969 kB / 0.5611 GB, free: 47.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002454/0.6448, allocations: 1.77 MB / 0.5628 GB, free: 45.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002649/0.645, allocations: 224.1 kB / 0.563 GB, free: 45.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.792e-05/0.6451, allocations: 20 kB / 0.563 GB, free: 45.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004719/0.6456, allocations: 47.97 kB / 0.5631 GB, free: 45.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.6458, allocations: 88.88 kB / 0.5632 GB, free: 45.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.098e-05/0.6458, allocations: 35.92 kB / 0.5632 GB, free: 45.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002247/0.646, allocations: 271.2 kB / 0.5634 GB, free: 44.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6461, allocations: 0 / 0.5634 GB, free: 44.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00101/0.6471, allocations: 332 kB / 0.5638 GB, free: 44.5 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.0003161/0.6474, allocations: 215.2 kB / 0.564 GB, free: 44.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002165/0.6496, allocations: 1.608 MB / 0.5655 GB, free: 42.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.6496, allocations: 4.062 kB / 0.5655 GB, free: 42.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001269/0.6509, allocations: 1.149 MB / 0.5667 GB, free: 41.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.6512, allocations: 50.2 kB / 0.5667 GB, free: 41.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003472/0.6547, allocations: 2.371 MB / 0.569 GB, free: 38.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.6551, allocations: 1.04 MB / 0.57 GB, free: 37.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000456/0.6556, allocations: 94.08 kB / 0.5701 GB, free: 37.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001523/0.6558, allocations: 55.42 kB / 0.5702 GB, free: 37.78 MB / 378.7 MB Notification: Performance of SimCode: time 7.02e-07/0.6558, allocations: 0 / 0.5702 GB, free: 37.78 MB / 378.7 MB Notification: Performance of Templates: time 0.01788/0.6736, allocations: 10.37 MB / 0.5803 GB, free: 27.43 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.makefile make -j1 -f Modelica_trunk_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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.c In file included from Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.c:7: In file included from ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_model.h:24: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_functions.h:414: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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.o] Error 1