Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000925/0.0009251, allocations: 180.3 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.224/1.224, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0008271/0.000827, allocations: 102.9 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000231/0.0002311, allocations: 4 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2621, allocations: 50.4 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1578/0.4199, allocations: 95.96 MB / 497.5 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.4202, allocations: 87.95 kB / 497.5 MB, free: 448 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2907/0.7109, allocations: 37.25 MB / 0.5223 GB, free: 90.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.711, allocations: 0 / 0.5223 GB, free: 90.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.021e-05/0.711, allocations: 31.28 kB / 0.5223 GB, free: 90.34 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.004743/0.7158, allocations: 1.694 MB / 0.524 GB, free: 89.15 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.7158, allocations: 14.09 kB / 0.524 GB, free: 89.15 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002728/0.7186, allocations: 452.2 kB / 0.5244 GB, free: 88.92 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001604/0.7202, allocations: 0.7424 MB / 0.5251 GB, free: 88.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001621/0.7204, allocations: 144.6 kB / 0.5253 GB, free: 88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004012/0.7208, allocations: 152 kB / 0.5254 GB, free: 87.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002916/0.7237, allocations: 1.339 MB / 0.5267 GB, free: 86.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.854e-05/0.7238, allocations: 11.89 kB / 0.5267 GB, free: 86.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/0.7239, allocations: 60 kB / 0.5268 GB, free: 86.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.118e-05/0.724, allocations: 32 kB / 0.5268 GB, free: 86.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002521/0.7265, allocations: 1.339 MB / 0.5281 GB, free: 85.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007718/0.7342, allocations: 4.944 MB / 0.5329 GB, free: 79.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002463/0.7367, allocations: 1.937 MB / 0.5348 GB, free: 77.83 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001125/0.7369, allocations: 107.7 kB / 0.5349 GB, free: 77.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001267/0.7381, allocations: 0.7591 MB / 0.5357 GB, free: 76.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 3.336e-06/0.7382, allocations: 0 / 0.5357 GB, free: 76.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.01301/0.7512, allocations: 5.572 MB / 0.5411 GB, free: 71.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.509e-05/0.7513, allocations: 157.8 kB / 0.5413 GB, free: 71.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006582/0.7519, allocations: 0.5423 MB / 0.5418 GB, free: 70.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.917e-05/0.7521, allocations: 57.7 kB / 0.5419 GB, free: 70.46 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003391/0.7524, allocations: 0.5573 MB / 0.5424 GB, free: 69.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000299/0.7527, allocations: 0.5337 MB / 0.5429 GB, free: 69.37 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.184e-05/0.7528, allocations: 32 kB / 0.543 GB, free: 69.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.7529, allocations: 410.7 kB / 0.5433 GB, free: 68.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001021/0.7539, allocations: 0.5193 MB / 0.5439 GB, free: 68.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001071/0.755, allocations: 0.8442 MB / 0.5447 GB, free: 67.45 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001109/0.7562, allocations: 0.6338 MB / 0.5453 GB, free: 66.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.7562, allocations: 4 kB / 0.5453 GB, free: 66.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003924/0.7601, allocations: 2.031 MB / 0.5473 GB, free: 64.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.7601, allocations: 12 kB / 0.5473 GB, free: 64.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.7602, allocations: 8 kB / 0.5473 GB, free: 64.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002095/0.7623, allocations: 0.5352 MB / 0.5478 GB, free: 64.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.7634, allocations: 291.5 kB / 0.5481 GB, free: 63.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007907/0.7713, allocations: 8.753 MB / 0.5566 GB, free: 54.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001233/0.7726, allocations: 79.97 kB / 0.5567 GB, free: 54.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001807/0.7728, allocations: 67.97 kB / 0.5568 GB, free: 54.51 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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.0008542/0.7737, allocations: 345.5 kB / 0.5571 GB, free: 54.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002182/0.7739, allocations: 106.7 kB / 0.5572 GB, free: 54.06 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004063/0.778, allocations: 1.914 MB / 0.5591 GB, free: 52.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.778, allocations: 23.98 kB / 0.5591 GB, free: 52.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.827e-05/0.778, allocations: 8 kB / 0.5591 GB, free: 52.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.778, allocations: 7.969 kB / 0.5591 GB, free: 52.08 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0058/0.7838, allocations: 3.402 MB / 0.5624 GB, free: 48.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.7839, allocations: 3.953 kB / 0.5625 GB, free: 48.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009418/0.7848, allocations: 211.8 kB / 0.5627 GB, free: 48.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001927/0.7867, allocations: 0.5048 MB / 0.5631 GB, free: 47.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.7869, allocations: 39.98 kB / 0.5632 GB, free: 47.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007698/0.7946, allocations: 8.482 MB / 0.5715 GB, free: 38.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.7946, allocations: 0 / 0.5715 GB, free: 38.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005094/0.7997, allocations: 2.642 MB / 0.574 GB, free: 36.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005471/0.8003, allocations: 295.6 kB / 0.5743 GB, free: 35.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002034/0.8005, allocations: 32 kB / 0.5744 GB, free: 35.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008309/0.8013, allocations: 71.95 kB / 0.5744 GB, free: 35.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002605/0.8016, allocations: 125.1 kB / 0.5745 GB, free: 35.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.537e-05/0.8017, allocations: 51.98 kB / 0.5746 GB, free: 35.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004796/0.8022, allocations: 423.1 kB / 0.575 GB, free: 35.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8022, allocations: 0 / 0.575 GB, free: 35.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001596/0.8038, allocations: 428 kB / 0.5754 GB, free: 34.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.0003876/0.8042, allocations: 220.1 kB / 0.5756 GB, free: 34.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003406/0.8076, allocations: 2.107 MB / 0.5777 GB, free: 32.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.8076, allocations: 4.312 kB / 0.5777 GB, free: 32.41 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.8096, allocations: 1.428 MB / 0.5791 GB, free: 30.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005617/0.8102, allocations: 95.45 kB / 0.5792 GB, free: 30.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00468/0.8149, allocations: 3.279 MB / 0.5824 GB, free: 27.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006154/0.8155, allocations: 1.213 MB / 0.5836 GB, free: 26.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007101/0.8162, allocations: 160.5 kB / 0.5837 GB, free: 26.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.8165, allocations: 75.41 kB / 0.5838 GB, free: 26.06 MB / 378.7 MB Notification: Performance of SimCode: time 1.012e-06/0.8165, allocations: 4 kB / 0.5838 GB, free: 26.05 MB / 378.7 MB Notification: Performance of Templates: time 0.02458/0.841, allocations: 16.21 MB / 0.5996 GB, free: 9.891 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.o Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.c In file included from Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.c:7: In file included from ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_model.h:24: ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_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.NonLinearInductor.o] Error 1