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.001145/0.001145, allocations: 195.1 kB / 14.16 MB, free: 1.152 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 225.4 MB / 240.1 MB, free: 15.1 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000928/0.0009277, allocations: 86.59 kB / 292.1 MB, free: 5.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.72e-05/2.722e-05, allocations: 0 / 350.5 MB, free: 2.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0951/0.09515, allocations: 51.49 MB / 402 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3121/0.4073, allocations: 96.83 MB / 498.9 MB, free: 8.773 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002263/0.4076, allocations: 91.69 kB / 499 MB, free: 8.727 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09125/0.4989, allocations: 38.5 MB / 0.5249 GB, free: 3.5 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4989, allocations: 4 kB / 0.5249 GB, free: 3.496 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.365e-05/0.499, allocations: 31.94 kB / 0.5249 GB, free: 3.465 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.003976/0.503, allocations: 1.624 MB / 0.5265 GB, free: 1.789 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.503, allocations: 12.02 kB / 0.5265 GB, free: 1.777 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00304/0.5061, allocations: 0.5297 MB / 0.527 GB, free: 1.246 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001329/0.5074, allocations: 0.7617 MB / 0.5278 GB, free: 452 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000143/0.5076, allocations: 148.6 kB / 0.5279 GB, free: 296 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002129/0.5078, allocations: 144 kB / 0.528 GB, free: 152 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002377/0.5102, allocations: 1.257 MB / 0.5293 GB, free: 14.87 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.169e-05/0.5102, allocations: 7.891 kB / 0.5293 GB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/0.5104, allocations: 60 kB / 0.5293 GB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.527e-05/0.5104, allocations: 35.94 kB / 0.5294 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002073/0.5125, allocations: 1.183 MB / 0.5305 GB, free: 13.58 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008383/0.5209, allocations: 5.057 MB / 0.5355 GB, free: 8.305 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002587/0.5235, allocations: 1.863 MB / 0.5373 GB, free: 6.277 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008433/0.5244, allocations: 0.5199 MB / 0.5378 GB, free: 5.758 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00024/0.5246, allocations: 195.2 kB / 0.538 GB, free: 5.531 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00113/0.5258, allocations: 0.6969 MB / 0.5386 GB, free: 4.801 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 3.937e-06/0.5258, allocations: 5.906 kB / 0.5387 GB, free: 4.797 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.01154/0.5373, allocations: 4.936 MB / 0.5435 GB, free: 15.79 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.5375, allocations: 230.9 kB / 0.5437 GB, free: 15.52 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000784/0.5383, allocations: 0.5699 MB / 0.5442 GB, free: 14.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.5384, allocations: 61.7 kB / 0.5443 GB, free: 14.88 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004446/0.5389, allocations: 0.5779 MB / 0.5449 GB, free: 14.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004148/0.5393, allocations: 0.5275 MB / 0.5454 GB, free: 13.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.079e-05/0.5394, allocations: 36 kB / 0.5454 GB, free: 13.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002476/0.5396, allocations: 418.7 kB / 0.5458 GB, free: 13.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008101/0.5405, allocations: 456 kB / 0.5463 GB, free: 12.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001038/0.5415, allocations: 0.7913 MB / 0.547 GB, free: 11.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009658/0.5425, allocations: 0.5664 MB / 0.5476 GB, free: 11.37 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.44e-06/0.5425, allocations: 0 / 0.5476 GB, free: 11.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004049/0.5466, allocations: 1.906 MB / 0.5494 GB, free: 9.441 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.5466, allocations: 8 kB / 0.5494 GB, free: 9.434 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.111e-05/0.5467, allocations: 11.95 kB / 0.5495 GB, free: 9.422 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001531/0.5482, allocations: 476.9 kB / 0.5499 GB, free: 8.945 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/0.5494, allocations: 291.6 kB / 0.5502 GB, free: 8.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009764/0.5592, allocations: 8.589 MB / 0.5586 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.5606, allocations: 83.86 kB / 0.5587 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.5607, allocations: 67.98 kB / 0.5587 GB, free: 15.4 MB / 442.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.0003402/0.5611, allocations: 208.6 kB / 0.5589 GB, free: 15.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001717/0.5613, allocations: 111 kB / 0.559 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003853/0.5651, allocations: 1.762 MB / 0.5608 GB, free: 13.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/0.5652, allocations: 16 kB / 0.5608 GB, free: 13.28 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.421e-05/0.5652, allocations: 11.94 kB / 0.5608 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.836e-05/0.5652, allocations: 15.86 kB / 0.5608 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006151/0.5714, allocations: 3.583 MB / 0.5643 GB, free: 9.586 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.5714, allocations: 0 / 0.5643 GB, free: 9.586 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009851/0.5724, allocations: 203.7 kB / 0.5645 GB, free: 9.387 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001633/0.574, allocations: 457.9 kB / 0.5649 GB, free: 8.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.711e-05/0.5742, allocations: 35.98 kB / 0.565 GB, free: 8.895 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008919/0.5831, allocations: 8.323 MB / 0.5731 GB, free: 40 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.5831, allocations: 8.016 kB / 0.5731 GB, free: 32 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2213/0.8044, allocations: 2.495 MB / 0.5755 GB, free: 98.06 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000515/0.805, allocations: 302.2 kB / 0.5758 GB, free: 97.97 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.8051, allocations: 33.78 kB / 0.5758 GB, free: 97.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007704/0.8059, allocations: 70.8 kB / 0.5759 GB, free: 97.97 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003211/0.8063, allocations: 127.9 kB / 0.576 GB, free: 97.97 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.715e-05/0.8063, allocations: 51.11 kB / 0.5761 GB, free: 97.97 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0004986/0.8069, allocations: 438.2 kB / 0.5765 GB, free: 97.86 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.8069, allocations: 0 / 0.5765 GB, free: 97.86 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001444/0.8083, allocations: 434.3 kB / 0.5769 GB, free: 97.86 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.0003671/0.8087, allocations: 256.2 kB / 0.5772 GB, free: 97.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002598/0.8113, allocations: 1.955 MB / 0.5791 GB, free: 97.29 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.8113, allocations: 3.094 kB / 0.5791 GB, free: 97.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001667/0.813, allocations: 1.342 MB / 0.5804 GB, free: 96.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004725/0.8135, allocations: 96.95 kB / 0.5805 GB, free: 96.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003655/0.8171, allocations: 2.096 MB / 0.5825 GB, free: 96.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006387/0.8178, allocations: 1.23 MB / 0.5837 GB, free: 95.53 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007187/0.8185, allocations: 156 kB / 0.5839 GB, free: 95.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.8188, allocations: 84.2 kB / 0.584 GB, free: 95.51 MB / 442.7 MB Notification: Performance of SimCode: time 8.92e-07/0.8188, allocations: 0 / 0.584 GB, free: 95.51 MB / 442.7 MB Notification: Performance of Templates: time 0.02613/0.8449, allocations: 16.63 MB / 0.6002 GB, free: 94.84 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