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.001095/0.001095, allocations: 202.7 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.214/1.214, allocations: 227.2 MB / 245 MB, free: 7.59 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008661/0.0008663, allocations: 99.42 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002674/0.0002675, allocations: 4 kB / 357.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2198/0.2201, allocations: 51.47 MB / 409.4 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1078/0.3279, allocations: 96.9 MB / 0.4944 GB, free: 9.707 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/0.3282, allocations: 91.95 kB / 0.4945 GB, free: 9.617 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2356/0.5639, allocations: 38.6 MB / 0.5322 GB, free: 79.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.5639, allocations: 0 / 0.5322 GB, free: 79.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.624e-05/0.564, allocations: 28 kB / 0.5322 GB, free: 79.33 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.003527/0.5675, allocations: 1.728 MB / 0.5339 GB, free: 77.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.5675, allocations: 8.219 kB / 0.5339 GB, free: 77.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002863/0.5704, allocations: 0.5406 MB / 0.5345 GB, free: 76.99 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001027/0.5714, allocations: 0.7581 MB / 0.5352 GB, free: 76.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.5716, allocations: 148.6 kB / 0.5354 GB, free: 76.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/0.5717, allocations: 152 kB / 0.5355 GB, free: 75.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002115/0.5739, allocations: 1.343 MB / 0.5368 GB, free: 74.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.682e-05/0.5739, allocations: 7.906 kB / 0.5368 GB, free: 74.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.574, allocations: 63.94 kB / 0.5369 GB, free: 74.45 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.891e-05/0.5741, allocations: 36 kB / 0.5369 GB, free: 74.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002165/0.5762, allocations: 1.335 MB / 0.5382 GB, free: 73.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006392/0.5826, allocations: 5.066 MB / 0.5432 GB, free: 67.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002219/0.5849, allocations: 1.941 MB / 0.5451 GB, free: 65.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001283/0.585, allocations: 187.2 kB / 0.5452 GB, free: 65.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001111/0.5861, allocations: 0.7488 MB / 0.546 GB, free: 64.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 3.767e-06/0.5862, allocations: 96 / 0.546 GB, free: 64.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.01185/0.598, allocations: 5.602 MB / 0.5514 GB, free: 58.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.5981, allocations: 153.8 kB / 0.5516 GB, free: 58.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005514/0.5986, allocations: 0.5621 MB / 0.5521 GB, free: 58.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.731e-05/0.5987, allocations: 57.7 kB / 0.5522 GB, free: 58.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002928/0.599, allocations: 0.5779 MB / 0.5528 GB, free: 57.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002558/0.5993, allocations: 0.5313 MB / 0.5533 GB, free: 57.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.606e-05/0.5994, allocations: 36 kB / 0.5533 GB, free: 56.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.5995, allocations: 422.7 kB / 0.5537 GB, free: 56.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009329/0.6004, allocations: 0.527 MB / 0.5542 GB, free: 56.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.6015, allocations: 0.8442 MB / 0.555 GB, free: 55.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.6025, allocations: 0.6338 MB / 0.5557 GB, free: 54.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.6025, allocations: 0 / 0.5557 GB, free: 54.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003706/0.6062, allocations: 2.039 MB / 0.5577 GB, free: 52.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.6062, allocations: 10.5 kB / 0.5577 GB, free: 52.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.6063, allocations: 12 kB / 0.5577 GB, free: 52.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001979/0.6082, allocations: 0.5283 MB / 0.5582 GB, free: 51.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.6093, allocations: 287.6 kB / 0.5585 GB, free: 51.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007505/0.6169, allocations: 8.755 MB / 0.567 GB, free: 42.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.6181, allocations: 80.03 kB / 0.5671 GB, free: 42.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.069e-05/0.6182, allocations: 71.97 kB / 0.5672 GB, free: 42.1 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.0005995/0.6188, allocations: 345.5 kB / 0.5675 GB, free: 41.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.6189, allocations: 114.7 kB / 0.5676 GB, free: 41.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003732/0.6227, allocations: 1.918 MB / 0.5695 GB, free: 39.7 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.006e-05/0.6227, allocations: 16 kB / 0.5695 GB, free: 39.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.6227, allocations: 8 kB / 0.5695 GB, free: 39.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.6227, allocations: 7.969 kB / 0.5695 GB, free: 39.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005361/0.6281, allocations: 3.415 MB / 0.5728 GB, free: 36.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.6281, allocations: 0 / 0.5728 GB, free: 36.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009124/0.629, allocations: 211.7 kB / 0.573 GB, free: 35.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001835/0.6309, allocations: 0.5067 MB / 0.5735 GB, free: 35.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.263e-05/0.631, allocations: 39.94 kB / 0.5736 GB, free: 35.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006842/0.6378, allocations: 8.473 MB / 0.5819 GB, free: 26.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.6379, allocations: 4.531 kB / 0.5819 GB, free: 26.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0047/0.6426, allocations: 2.651 MB / 0.5844 GB, free: 23.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004168/0.643, allocations: 295.6 kB / 0.5847 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/0.6431, allocations: 39.94 kB / 0.5848 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007022/0.6438, allocations: 67.97 kB / 0.5848 GB, free: 23.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/0.6441, allocations: 129.1 kB / 0.585 GB, free: 23.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.716e-05/0.6442, allocations: 47.97 kB / 0.585 GB, free: 23.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004251/0.6446, allocations: 447 kB / 0.5854 GB, free: 22.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6446, allocations: 0 / 0.5854 GB, free: 22.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001293/0.6459, allocations: 432 kB / 0.5858 GB, free: 22.28 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.0003065/0.6462, allocations: 240.7 kB / 0.5861 GB, free: 22.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002946/0.6492, allocations: 2.109 MB / 0.5881 GB, free: 19.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.6492, allocations: 7.984 kB / 0.5881 GB, free: 19.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001765/0.6509, allocations: 1.425 MB / 0.5895 GB, free: 18.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005699/0.6515, allocations: 101.8 kB / 0.5896 GB, free: 18.3 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004611/0.6562, allocations: 3.317 MB / 0.5929 GB, free: 14.95 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005951/0.6568, allocations: 1.232 MB / 0.5941 GB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007168/0.6575, allocations: 148.6 kB / 0.5942 GB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002493/0.6577, allocations: 83.41 kB / 0.5943 GB, free: 13.46 MB / 378.7 MB Notification: Performance of SimCode: time 8.42e-07/0.6578, allocations: 0 / 0.5943 GB, free: 13.46 MB / 378.7 MB Notification: Performance of Templates: time 0.02348/0.6812, allocations: 16.4 MB / 0.6103 GB, free: 13.08 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 -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_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:24: ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_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.NonLinearInductor.o] Error 1