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.001587/0.001587, allocations: 199.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 225.6 MB / 234.8 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009483/0.0009481, allocations: 89.95 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.867e-05/1.859e-05, allocations: 4 kB / 343.7 MB, free: 8.281 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09839/0.09842, allocations: 51.48 MB / 395.2 MB, free: 4.762 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3323/0.4308, allocations: 96.17 MB / 491.3 MB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.4311, allocations: 81.95 kB / 491.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09083/0.5219, allocations: 38.11 MB / 0.5171 GB, free: 11.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.522, allocations: 0 / 0.5171 GB, free: 11.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.965e-05/0.522, allocations: 31.94 kB / 0.5172 GB, free: 11.83 MB / 394.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.00395/0.526, allocations: 1.62 MB / 0.5187 GB, free: 10.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.526, allocations: 8.031 kB / 0.5187 GB, free: 10.15 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00313/0.5292, allocations: 0.5375 MB / 0.5193 GB, free: 9.609 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001177/0.5304, allocations: 0.7578 MB / 0.52 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.5305, allocations: 92.62 kB / 0.5201 GB, free: 8.715 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001826/0.5307, allocations: 95.98 kB / 0.5202 GB, free: 8.621 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001964/0.5326, allocations: 1.095 MB / 0.5213 GB, free: 7.523 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.5346, allocations: 1.036 MB / 0.5223 GB, free: 6.469 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.256e-05/0.5347, allocations: 11.91 kB / 0.5223 GB, free: 6.457 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.5348, allocations: 3.984 kB / 0.5223 GB, free: 6.453 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.817e-05/0.5348, allocations: 36 kB / 0.5223 GB, free: 6.418 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008279/0.5431, allocations: 4.829 MB / 0.527 GB, free: 1.383 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002515/0.5456, allocations: 1.813 MB / 0.5288 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007462/0.5464, allocations: 485.4 kB / 0.5293 GB, free: 14.94 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002054/0.5466, allocations: 191.5 kB / 0.5295 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001032/0.5477, allocations: 0.6555 MB / 0.5301 GB, free: 14.03 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 3.436e-06/0.5477, allocations: 0 / 0.5301 GB, free: 14.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.01249/0.5602, allocations: 5.03 MB / 0.535 GB, free: 8.926 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.5603, allocations: 226.9 kB / 0.5352 GB, free: 8.656 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/0.561, allocations: 0.5112 MB / 0.5357 GB, free: 8.141 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.217e-05/0.5611, allocations: 29.7 kB / 0.5357 GB, free: 8.105 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004642/0.5616, allocations: 0.5741 MB / 0.5363 GB, free: 7.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003984/0.562, allocations: 0.5118 MB / 0.5368 GB, free: 7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.498e-05/0.5621, allocations: 0 / 0.5368 GB, free: 7 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001975/0.5623, allocations: 410.7 kB / 0.5372 GB, free: 6.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006888/0.563, allocations: 432 kB / 0.5376 GB, free: 6.168 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009202/0.5639, allocations: 0.7486 MB / 0.5383 GB, free: 5.289 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00195/0.5659, allocations: 0.7529 MB / 0.5391 GB, free: 4.543 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/0.5659, allocations: 4 kB / 0.5391 GB, free: 4.539 MB / 410.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004575/0.5705, allocations: 1.968 MB / 0.541 GB, free: 2.551 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/0.5705, allocations: 12 kB / 0.541 GB, free: 2.539 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.5705, allocations: 8 kB / 0.541 GB, free: 2.531 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001403/0.5719, allocations: 452.5 kB / 0.5415 GB, free: 2.078 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.5731, allocations: 291.5 kB / 0.5417 GB, free: 1.793 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008815/0.582, allocations: 8.264 MB / 0.5498 GB, free: 9.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001221/0.5832, allocations: 47.95 kB / 0.5498 GB, free: 9.023 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.5833, allocations: 66.25 kB / 0.5499 GB, free: 8.961 MB / 426.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 () * 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.0003079/0.5837, allocations: 159.7 kB / 0.5501 GB, free: 8.797 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.5838, allocations: 122.6 kB / 0.5502 GB, free: 8.676 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004593/0.5884, allocations: 1.82 MB / 0.552 GB, free: 6.828 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/0.5885, allocations: 20 kB / 0.552 GB, free: 6.809 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.5885, allocations: 8 kB / 0.552 GB, free: 6.801 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-05/0.5885, allocations: 7.969 kB / 0.552 GB, free: 6.793 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006494/0.595, allocations: 3.473 MB / 0.5554 GB, free: 3.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.595, allocations: 0 / 0.5554 GB, free: 3.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009951/0.596, allocations: 211.7 kB / 0.5556 GB, free: 3.043 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001323/0.5974, allocations: 452.8 kB / 0.556 GB, free: 2.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.252e-05/0.5975, allocations: 15.98 kB / 0.556 GB, free: 2.574 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008612/0.6061, allocations: 7.997 MB / 0.5638 GB, free: 10.13 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.441e-06/0.6061, allocations: 0 / 0.5638 GB, free: 10.13 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005586/0.6117, allocations: 2.569 MB / 0.5664 GB, free: 7.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004988/0.6122, allocations: 291.6 kB / 0.5666 GB, free: 7.195 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001465/0.6124, allocations: 8 kB / 0.5666 GB, free: 7.188 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007402/0.6131, allocations: 51.95 kB / 0.5667 GB, free: 7.137 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002931/0.6134, allocations: 125.1 kB / 0.5668 GB, free: 7.016 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.836e-05/0.6135, allocations: 47.98 kB / 0.5669 GB, free: 6.969 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005262/0.6141, allocations: 387.2 kB / 0.5672 GB, free: 6.586 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6141, allocations: 0 / 0.5672 GB, free: 6.586 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001617/0.6157, allocations: 359.9 kB / 0.5676 GB, free: 6.234 MB / 442.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) * 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.000392/0.6161, allocations: 224.6 kB / 0.5678 GB, free: 6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002796/0.6189, allocations: 1.814 MB / 0.5695 GB, free: 4.148 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.6189, allocations: 7.969 kB / 0.5696 GB, free: 4.141 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001787/0.6207, allocations: 1.261 MB / 0.5708 GB, free: 2.84 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/0.6212, allocations: 63.23 kB / 0.5708 GB, free: 2.781 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004387/0.6256, allocations: 2.014 MB / 0.5728 GB, free: 0.7148 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2149/0.8405, allocations: 1.225 MB / 0.574 GB, free: 98.07 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001029/0.8416, allocations: 160.1 kB / 0.5742 GB, free: 98.05 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002375/0.8418, allocations: 78.98 kB / 0.5742 GB, free: 98.05 MB / 442.7 MB Notification: Performance of SimCode: time 8.41e-07/0.8418, allocations: 0 / 0.5742 GB, free: 98.05 MB / 442.7 MB Notification: Performance of Templates: time 0.02354/0.8654, allocations: 15.18 MB / 0.5891 GB, free: 97.58 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/NonLinearInductor/NonLinearInductor.csv","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches