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.000919/0.0009191, allocations: 177.1 kB / 17.4 MB, free: 4.418 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.247/1.247, allocations: 223.3 MB / 241.4 MB, free: 9.973 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.0007699/0.0007702, allocations: 94.17 kB / 292.6 MB, free: 10.58 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003021/0.0003021, allocations: 11.94 kB / 352.4 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2198, allocations: 50.4 MB / 402.8 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1067/0.3266, allocations: 96.08 MB / 498.8 MB, free: 224 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.3269, allocations: 91.95 kB / 498.9 MB, free: 132 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2683/0.5952, allocations: 37.2 MB / 0.5236 GB, free: 90.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.5953, allocations: 4 kB / 0.5236 GB, free: 90.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.527e-05/0.5954, allocations: 28.5 kB / 0.5236 GB, free: 90.31 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.005063/0.6004, allocations: 1.68 MB / 0.5252 GB, free: 89.06 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.6005, allocations: 8.031 kB / 0.5252 GB, free: 89.05 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002722/0.6032, allocations: 454.2 kB / 0.5257 GB, free: 88.61 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/0.605, allocations: 0.7676 MB / 0.5264 GB, free: 87.81 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001623/0.6051, allocations: 145.7 kB / 0.5266 GB, free: 87.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004157/0.6056, allocations: 151.9 kB / 0.5267 GB, free: 87.51 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003336/0.6089, allocations: 1.358 MB / 0.528 GB, free: 86.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.515e-05/0.609, allocations: 7.984 kB / 0.528 GB, free: 86.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001868/0.6092, allocations: 60 kB / 0.5281 GB, free: 86.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.424e-05/0.6092, allocations: 36 kB / 0.5281 GB, free: 86.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002818/0.6121, allocations: 1.327 MB / 0.5294 GB, free: 84.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007977/0.62, allocations: 4.951 MB / 0.5343 GB, free: 79.58 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002293/0.6224, allocations: 1.94 MB / 0.5362 GB, free: 77.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009321/0.6233, allocations: 0.5862 MB / 0.5367 GB, free: 76.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001141/0.6235, allocations: 111.4 kB / 0.5368 GB, free: 76.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001176/0.6247, allocations: 0.7603 MB / 0.5376 GB, free: 75.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 3.586e-06/0.6247, allocations: 0 / 0.5376 GB, free: 75.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.01255/0.6372, allocations: 6.01 MB / 0.5434 GB, free: 69.86 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.419e-05/0.6373, allocations: 230.9 kB / 0.5437 GB, free: 69.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006931/0.638, allocations: 0.6057 MB / 0.5443 GB, free: 68.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001039/0.6382, allocations: 57.7 kB / 0.5443 GB, free: 68.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003267/0.6385, allocations: 0.565 MB / 0.5449 GB, free: 68.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002872/0.6388, allocations: 0.5331 MB / 0.5454 GB, free: 67.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.908e-05/0.6389, allocations: 36 kB / 0.5454 GB, free: 67.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.639, allocations: 414.6 kB / 0.5458 GB, free: 67.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009494/0.6399, allocations: 0.5153 MB / 0.5463 GB, free: 66.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001018/0.641, allocations: 0.8575 MB / 0.5472 GB, free: 65.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001996/0.643, allocations: 1.45 MB / 0.5486 GB, free: 64.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.493e-06/0.643, allocations: 4 kB / 0.5486 GB, free: 64.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003759/0.6468, allocations: 2.025 MB / 0.5506 GB, free: 62.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.451e-05/0.6468, allocations: 11.94 kB / 0.5506 GB, free: 62.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.676e-05/0.6468, allocations: 8 kB / 0.5506 GB, free: 62.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001823/0.6487, allocations: 0.5287 MB / 0.5511 GB, free: 61.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.6497, allocations: 287.5 kB / 0.5514 GB, free: 61.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007487/0.6572, allocations: 8.606 MB / 0.5598 GB, free: 52.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.6584, allocations: 91.92 kB / 0.5599 GB, free: 52.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.717e-05/0.6586, allocations: 60 kB / 0.5599 GB, free: 52.13 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.0006494/0.6592, allocations: 357.4 kB / 0.5603 GB, free: 51.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.6594, allocations: 106.7 kB / 0.5604 GB, free: 51.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003706/0.6631, allocations: 1.879 MB / 0.5622 GB, free: 49.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.6631, allocations: 16 kB / 0.5622 GB, free: 49.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.6631, allocations: 11.98 kB / 0.5622 GB, free: 49.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.6631, allocations: 7.969 kB / 0.5622 GB, free: 49.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005524/0.6687, allocations: 3.693 MB / 0.5658 GB, free: 45.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.6687, allocations: 0 / 0.5658 GB, free: 45.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008626/0.6696, allocations: 211.8 kB / 0.566 GB, free: 45.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00174/0.6713, allocations: 0.5051 MB / 0.5665 GB, free: 45.26 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.6715, allocations: 39.91 kB / 0.5666 GB, free: 45.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006977/0.6784, allocations: 8.337 MB / 0.5747 GB, free: 36.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6785, allocations: 4.062 kB / 0.5747 GB, free: 36.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004804/0.6833, allocations: 2.629 MB / 0.5773 GB, free: 33.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005288/0.6838, allocations: 287.6 kB / 0.5776 GB, free: 33.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001447/0.684, allocations: 47.92 kB / 0.5776 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006783/0.6847, allocations: 63.97 kB / 0.5777 GB, free: 33.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002862/0.685, allocations: 129.1 kB / 0.5778 GB, free: 33.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.951e-05/0.6851, allocations: 51.97 kB / 0.5778 GB, free: 33.1 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004755/0.6855, allocations: 415.1 kB / 0.5782 GB, free: 32.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6855, allocations: 8 kB / 0.5782 GB, free: 32.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001554/0.6871, allocations: 427.9 kB / 0.5786 GB, free: 32.27 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.0003402/0.6875, allocations: 220.6 kB / 0.5789 GB, free: 32.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003148/0.6906, allocations: 2.091 MB / 0.5809 GB, free: 29.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.6906, allocations: 4.25 kB / 0.5809 GB, free: 29.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001841/0.6925, allocations: 1.435 MB / 0.5823 GB, free: 28.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008714/0.6934, allocations: 114.1 kB / 0.5824 GB, free: 28.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004415/0.6978, allocations: 3.307 MB / 0.5856 GB, free: 24.97 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005797/0.6984, allocations: 1.185 MB / 0.5868 GB, free: 23.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000742/0.6991, allocations: 152.5 kB / 0.5869 GB, free: 23.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002181/0.6994, allocations: 83.41 kB / 0.587 GB, free: 23.52 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6994, allocations: 0 / 0.587 GB, free: 23.52 MB / 378.7 MB Notification: Performance of Templates: time 0.02313/0.7225, allocations: 16.22 MB / 0.6029 GB, free: 7.348 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 -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_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:26: ./Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.o] Error 1