Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.NonLinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|fundamentalWavePermabilitySensor.harmonicFlux.mean1.x|fundamentalWavePermabilitySensor.harmonicFlux.mean2.x|fundamentalWavePermabilitySensor.harmonicPotential.mean1.x|fundamentalWavePermabilitySensor.harmonicPotential.mean2.x|r_mLeak.port_p.Phi|rootMeanSquare.mean1.x|rootMeanSquare.mean2.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|coil.Phi|coil.i|fundamentalWavePermabilitySensor.harmonicFlux.mean1.x|fundamentalWavePermabilitySensor.harmonicFlux.mean2.x|fundamentalWavePermabilitySensor.harmonicPotential.mean1.x|fundamentalWavePermabilitySensor.harmonicPotential.mean2.x|r_mLeak.port_p.Phi|rootMeanSquare.mean1.x|rootMeanSquare.mean2.x|sourceQS.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001351/0.001351, allocations: 200.7 kB / 18.1 MB, free: 3.715 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 226.5 MB / 245.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009618/0.0009618, allocations: 89.64 kB / 297.5 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003052, allocations: 8 kB / 358.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2725, allocations: 51.29 MB / 409.4 MB, free: 27.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1115/0.3841, allocations: 96.85 MB / 0.4944 GB, free: 10.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.3844, allocations: 87.95 kB / 0.4944 GB, free: 10.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2514/0.6358, allocations: 38.47 MB / 0.532 GB, free: 81.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.6358, allocations: 0 / 0.532 GB, free: 81.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.236e-05/0.6359, allocations: 28 kB / 0.532 GB, free: 81.13 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: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.003859/0.6397, allocations: 1.709 MB / 0.5337 GB, free: 79.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.6398, allocations: 12.02 kB / 0.5337 GB, free: 79.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002996/0.6428, allocations: 0.5337 MB / 0.5342 GB, free: 78.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.644, allocations: 0.7864 MB / 0.535 GB, free: 77.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.6441, allocations: 141.8 kB / 0.5351 GB, free: 77.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002356/0.6444, allocations: 159.8 kB / 0.5353 GB, free: 77.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002261/0.6466, allocations: 1.358 MB / 0.5366 GB, free: 76.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.463e-05/0.6467, allocations: 0 / 0.5366 GB, free: 76.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001172/0.6468, allocations: 63.98 kB / 0.5367 GB, free: 76.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/0.6469, allocations: 36 kB / 0.5367 GB, free: 76.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002373/0.6492, allocations: 1.335 MB / 0.538 GB, free: 74.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006596/0.6558, allocations: 5.062 MB / 0.543 GB, free: 69.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002233/0.6581, allocations: 1.936 MB / 0.5449 GB, free: 67.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009166/0.659, allocations: 0.5939 MB / 0.5454 GB, free: 66.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001313/0.6592, allocations: 191.2 kB / 0.5456 GB, free: 66.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001147/0.6603, allocations: 0.7724 MB / 0.5464 GB, free: 65.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 3.327e-06/0.6603, allocations: 0 / 0.5464 GB, free: 65.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.01227/0.6726, allocations: 6.022 MB / 0.5523 GB, free: 59.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.946e-05/0.6727, allocations: 234.9 kB / 0.5525 GB, free: 59.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006536/0.6734, allocations: 0.6409 MB / 0.5531 GB, free: 58.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.437e-05/0.6735, allocations: 57.7 kB / 0.5532 GB, free: 58.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003145/0.6738, allocations: 0.5741 MB / 0.5537 GB, free: 58.12 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002749/0.6741, allocations: 0.5346 MB / 0.5542 GB, free: 57.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.691e-05/0.6741, allocations: 32 kB / 0.5543 GB, free: 57.55 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.6743, allocations: 426.6 kB / 0.5547 GB, free: 57.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009621/0.6752, allocations: 0.5114 MB / 0.5552 GB, free: 56.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/0.6763, allocations: 0.8653 MB / 0.556 GB, free: 55.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002133/0.6785, allocations: 1.454 MB / 0.5574 GB, free: 54.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.6785, allocations: 4 kB / 0.5575 GB, free: 54.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004027/0.6825, allocations: 2.035 MB / 0.5594 GB, free: 51.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.6826, allocations: 12 kB / 0.5594 GB, free: 51.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.6826, allocations: 8 kB / 0.5595 GB, free: 51.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00189/0.6845, allocations: 0.5246 MB / 0.56 GB, free: 51.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.6855, allocations: 295.5 kB / 0.5603 GB, free: 51.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007636/0.6932, allocations: 8.603 MB / 0.5687 GB, free: 42.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/0.6944, allocations: 91.88 kB / 0.5687 GB, free: 41.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001588/0.6946, allocations: 63.98 kB / 0.5688 GB, free: 41.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.rootMeanSquare.mean1.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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: 3 {(1,100.0%) 9,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007369/0.6953, allocations: 353.5 kB / 0.5691 GB, free: 41.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001942/0.6955, allocations: 110.7 kB / 0.5692 GB, free: 41.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003857/0.6994, allocations: 1.887 MB / 0.5711 GB, free: 39.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.6994, allocations: 16 kB / 0.5711 GB, free: 39.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/0.6994, allocations: 8 kB / 0.5711 GB, free: 39.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.6994, allocations: 7.969 kB / 0.5711 GB, free: 39.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005763/0.7052, allocations: 3.704 MB / 0.5747 GB, free: 35.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.7052, allocations: 4 kB / 0.5747 GB, free: 35.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008895/0.7061, allocations: 211.8 kB / 0.5749 GB, free: 35.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001827/0.708, allocations: 0.507 MB / 0.5754 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/0.7081, allocations: 39.92 kB / 0.5755 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007406/0.7155, allocations: 8.325 MB / 0.5836 GB, free: 26.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.7156, allocations: 3.938 kB / 0.5836 GB, free: 26.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005414/0.721, allocations: 2.634 MB / 0.5862 GB, free: 23.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006912/0.7217, allocations: 303.6 kB / 0.5865 GB, free: 23.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000292/0.722, allocations: 35.94 kB / 0.5865 GB, free: 23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009343/0.723, allocations: 67.95 kB / 0.5866 GB, free: 22.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002724/0.7233, allocations: 125.1 kB / 0.5867 GB, free: 22.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.869e-05/0.7234, allocations: 55.97 kB / 0.5867 GB, free: 22.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005162/0.7239, allocations: 435.1 kB / 0.5872 GB, free: 22.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7239, allocations: 0 / 0.5872 GB, free: 22.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00162/0.7255, allocations: 432 kB / 0.5876 GB, free: 21.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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: 3 {(1,100.0%) 9,(2,100.0%) 18,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003742/0.7259, allocations: 236.7 kB / 0.5878 GB, free: 21.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003336/0.7292, allocations: 2.102 MB / 0.5898 GB, free: 19.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.7293, allocations: 0 / 0.5898 GB, free: 19.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.7312, allocations: 1.425 MB / 0.5912 GB, free: 18.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009254/0.7322, allocations: 123.8 kB / 0.5914 GB, free: 17.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004759/0.7369, allocations: 3.345 MB / 0.5946 GB, free: 14.53 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006627/0.7376, allocations: 1.193 MB / 0.5958 GB, free: 13.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008107/0.7384, allocations: 160.6 kB / 0.5959 GB, free: 13.14 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002492/0.7387, allocations: 83.41 kB / 0.596 GB, free: 13.06 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.7387, allocations: 4 kB / 0.596 GB, free: 13.05 MB / 378.7 MB Notification: Performance of Templates: time 0.02645/0.7652, allocations: 16.36 MB / 0.612 GB, free: 12.72 MB / 394.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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_NonLinearInductor -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=6 -DOMC_NUM_NONLINEAR_SYSTEMS=2 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.o Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.c In file included from Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.c:7: In file included from ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_model.h:26: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_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.NonLinearInductor.o] Error 1