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.0009669/0.0009666, allocations: 200.1 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.265/1.265, allocations: 226.5 MB / 245.4 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007661/0.0007665, allocations: 105.2 kB / 297.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002437/0.0002437, allocations: 4 kB / 358.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.212, allocations: 51.28 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1073/0.3193, allocations: 94.08 MB / 0.4916 GB, free: 13.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.3196, allocations: 87.95 kB / 0.4917 GB, free: 13.35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.273/0.5927, allocations: 31.5 MB / 0.5225 GB, free: 64.62 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.5927, allocations: 0 / 0.5225 GB, free: 64.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.716e-05/0.5928, allocations: 17.19 kB / 0.5225 GB, free: 64.62 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.003425/0.5962, allocations: 1.281 MB / 0.5238 GB, free: 63.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.5962, allocations: 11.06 kB / 0.5238 GB, free: 63.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002585/0.5988, allocations: 412.9 kB / 0.5242 GB, free: 63.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008942/0.5997, allocations: 0.4941 MB / 0.5246 GB, free: 63.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.192e-05/0.5998, allocations: 87.84 kB / 0.5247 GB, free: 63.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002508/0.6001, allocations: 105.6 kB / 0.5248 GB, free: 63.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/0.602, allocations: 0.9747 MB / 0.5258 GB, free: 63.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.256e-05/0.602, allocations: 7.438 kB / 0.5258 GB, free: 63.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.722e-05/0.6022, allocations: 44.66 kB / 0.5258 GB, free: 63.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.6022, allocations: 26.78 kB / 0.5259 GB, free: 63.5 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001769/0.604, allocations: 0.9778 MB / 0.5268 GB, free: 63.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005301/0.6093, allocations: 3.827 MB / 0.5306 GB, free: 62.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.6108, allocations: 1.54 MB / 0.5321 GB, free: 60.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006741/0.6115, allocations: 431.5 kB / 0.5325 GB, free: 60.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001291/0.6116, allocations: 189.8 kB / 0.5326 GB, free: 60.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006849/0.6123, allocations: 480.4 kB / 0.5331 GB, free: 60.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 2.786e-06/0.6123, allocations: 4 kB / 0.5331 GB, free: 60.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.007717/0.6201, allocations: 4.177 MB / 0.5372 GB, free: 57.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.124e-05/0.6202, allocations: 232.4 kB / 0.5374 GB, free: 56.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003905/0.6206, allocations: 395.1 kB / 0.5378 GB, free: 56.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.57e-05/0.6206, allocations: 47.83 kB / 0.5378 GB, free: 56.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002381/0.6209, allocations: 429.5 kB / 0.5382 GB, free: 56.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002406/0.6211, allocations: 411.5 kB / 0.5386 GB, free: 55.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.697e-05/0.6212, allocations: 28.25 kB / 0.5387 GB, free: 55.83 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.285e-05/0.6213, allocations: 382.6 kB / 0.539 GB, free: 55.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006152/0.6219, allocations: 335.5 kB / 0.5393 GB, free: 55.27 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006925/0.6226, allocations: 0.5494 MB / 0.5399 GB, free: 54.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.624, allocations: 0.9397 MB / 0.5408 GB, free: 54.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.902e-06/0.624, allocations: 4 kB / 0.5408 GB, free: 54.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002146/0.6261, allocations: 1.353 MB / 0.5421 GB, free: 53.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.6262, allocations: 4 kB / 0.5421 GB, free: 53.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.6262, allocations: 8 kB / 0.5421 GB, free: 53.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007704/0.627, allocations: 342.4 kB / 0.5425 GB, free: 52.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007497/0.6277, allocations: 200.2 kB / 0.5427 GB, free: 52.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005607/0.6333, allocations: 7.692 MB / 0.5502 GB, free: 45.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006649/0.634, allocations: 47.8 kB / 0.5502 GB, free: 45.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.068e-05/0.6341, allocations: 49.92 kB / 0.5503 GB, free: 45.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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.0004576/0.6346, allocations: 259.5 kB / 0.5505 GB, free: 45.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.6347, allocations: 71.16 kB / 0.5506 GB, free: 45.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002193/0.6369, allocations: 1.259 MB / 0.5518 GB, free: 44.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.6369, allocations: 15.94 kB / 0.5518 GB, free: 44.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/0.6369, allocations: 8 kB / 0.5518 GB, free: 44.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.637, allocations: 7.984 kB / 0.5518 GB, free: 44.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003554/0.6405, allocations: 2.662 MB / 0.5544 GB, free: 42.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.6405, allocations: 0 / 0.5544 GB, free: 42.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006093/0.6412, allocations: 150.2 kB / 0.5546 GB, free: 42.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007101/0.6419, allocations: 326 kB / 0.5549 GB, free: 42.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.69e-05/0.642, allocations: 21.31 kB / 0.5549 GB, free: 42.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005447/0.6474, allocations: 7.426 MB / 0.5622 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.6474, allocations: 7.906 kB / 0.5622 GB, free: 35.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002792/0.6502, allocations: 1.759 MB / 0.5639 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003406/0.6506, allocations: 232 kB / 0.5641 GB, free: 33.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.6507, allocations: 20 kB / 0.5641 GB, free: 33.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005368/0.6513, allocations: 39.98 kB / 0.5642 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.6515, allocations: 100.8 kB / 0.5643 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.473e-05/0.6515, allocations: 35.98 kB / 0.5643 GB, free: 32.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002808/0.6518, allocations: 267.2 kB / 0.5645 GB, free: 32.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6518, allocations: 0 / 0.5645 GB, free: 32.65 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001338/0.6532, allocations: 331.9 kB / 0.5649 GB, free: 32.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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.0003885/0.6536, allocations: 197.2 kB / 0.5651 GB, free: 32.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002577/0.6562, allocations: 1.611 MB / 0.5666 GB, free: 30.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.6562, allocations: 0 / 0.5666 GB, free: 30.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001363/0.6575, allocations: 1.145 MB / 0.5677 GB, free: 29.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007193/0.6583, allocations: 77.53 kB / 0.5678 GB, free: 29.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003727/0.662, allocations: 2.369 MB / 0.5701 GB, free: 26.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.6625, allocations: 1.024 MB / 0.5711 GB, free: 25.74 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005575/0.6631, allocations: 94.08 kB / 0.5712 GB, free: 25.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.6633, allocations: 55.42 kB / 0.5713 GB, free: 25.6 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.6633, allocations: 0 / 0.5713 GB, free: 25.6 MB / 378.7 MB Notification: Performance of Templates: time 0.01701/0.6803, allocations: 10.32 MB / 0.5814 GB, free: 15.3 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 -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -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:26: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_functions.h:387: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