Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009086/0.0009086, allocations: 180.5 kB / 17.41 MB, free: 4.402 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.22/1.22, allocations: 205.4 MB / 223.6 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007049/0.0007049, allocations: 90.52 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003197, allocations: 11.98 kB / 328.2 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.191/0.1913, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0927/0.2841, allocations: 93.83 MB / 469.6 MB, free: 2.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002491/0.2843, allocations: 87.95 kB / 469.6 MB, free: 2.684 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2351/0.5195, allocations: 37.39 MB / 0.4952 GB, free: 91.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.5195, allocations: 0 / 0.4952 GB, free: 91.21 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.318e-05/0.5196, allocations: 29.88 kB / 0.4952 GB, free: 91.21 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.004038/0.5236, allocations: 1.696 MB / 0.4968 GB, free: 90.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.5237, allocations: 9.75 kB / 0.4968 GB, free: 90.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003023/0.5267, allocations: 0.5098 MB / 0.4973 GB, free: 90.33 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001351/0.5281, allocations: 0.7752 MB / 0.4981 GB, free: 90 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001614/0.5283, allocations: 148 kB / 0.4982 GB, free: 89.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002391/0.5285, allocations: 158.3 kB / 0.4984 GB, free: 89.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002697/0.5312, allocations: 1.377 MB / 0.4997 GB, free: 89.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.969e-05/0.5313, allocations: 9.969 kB / 0.4997 GB, free: 89.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001391/0.5314, allocations: 68.45 kB / 0.4998 GB, free: 89.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.542e-05/0.5315, allocations: 35.75 kB / 0.4998 GB, free: 89.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002862/0.5344, allocations: 1.389 MB / 0.5012 GB, free: 89.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007886/0.5423, allocations: 5.073 MB / 0.5062 GB, free: 88.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002519/0.5448, allocations: 2.458 MB / 0.5086 GB, free: 86.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009612/0.5458, allocations: 0.5972 MB / 0.5091 GB, free: 86.87 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001199/0.5459, allocations: 107.7 kB / 0.5092 GB, free: 86.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001175/0.5471, allocations: 0.7741 MB / 0.51 GB, free: 86.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 4.008e-06/0.5471, allocations: 0 / 0.51 GB, free: 86.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=165): time 0.01315/0.5603, allocations: 6.081 MB / 0.5159 GB, free: 84.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.022e-05/0.5604, allocations: 236.1 kB / 0.5162 GB, free: 84.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006541/0.5611, allocations: 0.6228 MB / 0.5168 GB, free: 84.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001011/0.5612, allocations: 67.25 kB / 0.5168 GB, free: 83.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000297/0.5615, allocations: 0.575 MB / 0.5174 GB, free: 83.51 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002854/0.5618, allocations: 0.5395 MB / 0.5179 GB, free: 83.09 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.741e-05/0.5619, allocations: 35.22 kB / 0.518 GB, free: 83.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.562, allocations: 416.8 kB / 0.5184 GB, free: 82.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009871/0.563, allocations: 0.516 MB / 0.5189 GB, free: 82.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.5641, allocations: 0.9035 MB / 0.5197 GB, free: 81.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002189/0.5663, allocations: 1.509 MB / 0.5212 GB, free: 80.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.5663, allocations: 3.844 kB / 0.5212 GB, free: 80.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004029/0.5703, allocations: 2.074 MB / 0.5232 GB, free: 80.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/0.5704, allocations: 6.625 kB / 0.5232 GB, free: 80.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/0.5704, allocations: 13.98 kB / 0.5233 GB, free: 80.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002038/0.5725, allocations: 0.5334 MB / 0.5238 GB, free: 80.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.5737, allocations: 306.1 kB / 0.5241 GB, free: 80.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008104/0.5818, allocations: 8.608 MB / 0.5325 GB, free: 72.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/0.583, allocations: 92.34 kB / 0.5326 GB, free: 72.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002105/0.5833, allocations: 66.16 kB / 0.5326 GB, free: 72.95 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.rootMeanSquare.mean1.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean2.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 162 * 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.0007591/0.584, allocations: 354.9 kB / 0.533 GB, free: 72.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/0.5843, allocations: 113.8 kB / 0.5331 GB, free: 72.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004123/0.5885, allocations: 1.9 MB / 0.5349 GB, free: 71.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.525e-05/0.5885, allocations: 19.38 kB / 0.535 GB, free: 71.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-05/0.5885, allocations: 10.5 kB / 0.535 GB, free: 71.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/0.5885, allocations: 7.125 kB / 0.535 GB, free: 71.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006006/0.5945, allocations: 3.707 MB / 0.5386 GB, free: 69.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.5946, allocations: 3.938 kB / 0.5386 GB, free: 69.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008967/0.5955, allocations: 216.4 kB / 0.5388 GB, free: 69.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001787/0.5973, allocations: 0.5056 MB / 0.5393 GB, free: 69.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/0.5974, allocations: 39.31 kB / 0.5393 GB, free: 69.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007384/0.6048, allocations: 8.32 MB / 0.5475 GB, free: 60.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.6048, allocations: 64 / 0.5475 GB, free: 60.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005238/0.6101, allocations: 2.672 MB / 0.5501 GB, free: 58.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005652/0.6107, allocations: 301.8 kB / 0.5504 GB, free: 57.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002579/0.611, allocations: 35.06 kB / 0.5504 GB, free: 57.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008078/0.6118, allocations: 70.64 kB / 0.5505 GB, free: 57.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000279/0.6121, allocations: 127.3 kB / 0.5506 GB, free: 57.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.13e-05/0.6122, allocations: 54.8 kB / 0.5506 GB, free: 57.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005229/0.6127, allocations: 419.9 kB / 0.551 GB, free: 57.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6127, allocations: 0 / 0.551 GB, free: 57.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001654/0.6144, allocations: 439.2 kB / 0.5514 GB, free: 56.95 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,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,rootMeanSquare.mean1.y,rootMeanSquare.mean2.y) * 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 (115): * Single equations (assignments): 105 * 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,(1,100.0%) 17} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003801/0.6148, allocations: 222.4 kB / 0.5517 GB, free: 56.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003385/0.6182, allocations: 2.126 MB / 0.5537 GB, free: 54.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.6182, allocations: 4.203 kB / 0.5537 GB, free: 54.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002055/0.6202, allocations: 1.458 MB / 0.5552 GB, free: 53.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009956/0.6213, allocations: 113.3 kB / 0.5553 GB, free: 53.27 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004954/0.6262, allocations: 3.412 MB / 0.5586 GB, free: 50.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006521/0.6269, allocations: 1.19 MB / 0.5598 GB, free: 49.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.6273, allocations: 101 kB / 0.5599 GB, free: 48.98 MB / 378.7 MB Notification: Performance of SimCode: time 7.52e-07/0.6273, allocations: 3.938 kB / 0.5599 GB, free: 48.98 MB / 378.7 MB Notification: Performance of Templates: time 0.03498/0.6623, allocations: 39.63 MB / 0.5986 GB, free: 11.17 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/NonLinearInductor/NonLinearInductor.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches