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.001205/0.001205, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 221.5 MB / 230.3 MB, free: 7.609 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009108/0.0009108, allocations: 90.05 kB / 281.2 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.643e-05/1.644e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 50.42 MB / 387.5 MB, free: 7.598 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3301/0.4354, allocations: 95.23 MB / 482.7 MB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.4357, allocations: 87.94 kB / 482.8 MB, free: 15.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08733/0.5231, allocations: 36.79 MB / 0.5074 GB, free: 10.41 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.5231, allocations: 0 / 0.5074 GB, free: 10.41 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.927e-05/0.5232, allocations: 31.92 kB / 0.5074 GB, free: 10.38 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.003843/0.527, allocations: 1.595 MB / 0.509 GB, free: 8.727 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.5271, allocations: 12.03 kB / 0.509 GB, free: 8.715 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002344/0.5294, allocations: 445.8 kB / 0.5094 GB, free: 8.277 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.5306, allocations: 0.7542 MB / 0.5102 GB, free: 7.477 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.5307, allocations: 92.61 kB / 0.5102 GB, free: 7.379 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001675/0.5309, allocations: 92 kB / 0.5103 GB, free: 7.289 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00188/0.5328, allocations: 1.095 MB / 0.5114 GB, free: 6.191 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001942/0.5347, allocations: 1.04 MB / 0.5124 GB, free: 5.133 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.179e-05/0.5348, allocations: 3.906 kB / 0.5124 GB, free: 5.129 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.5349, allocations: 3.938 kB / 0.5124 GB, free: 5.125 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.863e-05/0.5349, allocations: 40 kB / 0.5125 GB, free: 5.086 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008374/0.5433, allocations: 4.693 MB / 0.517 GB, free: 192 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002678/0.546, allocations: 1.816 MB / 0.5188 GB, free: 14.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000852/0.5469, allocations: 489.3 kB / 0.5193 GB, free: 13.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001515/0.5471, allocations: 114.4 kB / 0.5194 GB, free: 13.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.5481, allocations: 0.6556 MB / 0.52 GB, free: 12.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 5.03e-06/0.5482, allocations: 0 / 0.52 GB, free: 12.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.0109/0.5591, allocations: 4.669 MB / 0.5246 GB, free: 8.172 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.5592, allocations: 234.9 kB / 0.5248 GB, free: 7.895 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000613/0.5599, allocations: 483.4 kB / 0.5253 GB, free: 7.418 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.497e-05/0.56, allocations: 29.7 kB / 0.5253 GB, free: 7.383 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004734/0.5604, allocations: 0.5661 MB / 0.5259 GB, free: 6.805 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004042/0.5608, allocations: 0.5079 MB / 0.5264 GB, free: 6.289 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.61e-05/0.5609, allocations: 0 / 0.5264 GB, free: 6.289 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.5611, allocations: 418.7 kB / 0.5268 GB, free: 5.871 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006593/0.5618, allocations: 420 kB / 0.5272 GB, free: 5.461 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008587/0.5626, allocations: 0.7408 MB / 0.5279 GB, free: 4.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001291/0.5639, allocations: 0.6603 MB / 0.5285 GB, free: 3.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.564, allocations: 4 kB / 0.5285 GB, free: 3.926 MB / 410.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003832/0.5678, allocations: 1.867 MB / 0.5304 GB, free: 2.043 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.5678, allocations: 8 kB / 0.5304 GB, free: 2.035 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/0.5679, allocations: 8 kB / 0.5304 GB, free: 2.027 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/0.5693, allocations: 453 kB / 0.5308 GB, free: 1.574 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/0.5704, allocations: 291.5 kB / 0.5311 GB, free: 1.289 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008728/0.5791, allocations: 8.27 MB / 0.5392 GB, free: 8.562 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001118/0.5803, allocations: 47.88 kB / 0.5392 GB, free: 8.516 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001106/0.5804, allocations: 71.98 kB / 0.5393 GB, free: 8.445 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.0002931/0.5807, allocations: 155.8 kB / 0.5394 GB, free: 8.285 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.5809, allocations: 102.8 kB / 0.5395 GB, free: 8.184 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004046/0.585, allocations: 1.741 MB / 0.5412 GB, free: 6.414 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.51e-05/0.585, allocations: 16 kB / 0.5412 GB, free: 6.398 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.585, allocations: 8 kB / 0.5412 GB, free: 6.391 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.719e-05/0.585, allocations: 11.97 kB / 0.5412 GB, free: 6.379 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00612/0.5912, allocations: 3.365 MB / 0.5445 GB, free: 2.949 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.5912, allocations: 0 / 0.5445 GB, free: 2.949 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009247/0.5921, allocations: 211.7 kB / 0.5447 GB, free: 2.742 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001289/0.5934, allocations: 448.6 kB / 0.5452 GB, free: 2.293 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.172e-05/0.5935, allocations: 19.97 kB / 0.5452 GB, free: 2.273 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2766/0.8701, allocations: 7.99 MB / 0.553 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/0.8702, allocations: 1.25 kB / 0.553 GB, free: 110.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006064/0.8762, allocations: 2.474 MB / 0.5554 GB, free: 110.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006935/0.877, allocations: 291.4 kB / 0.5557 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.8771, allocations: 8.062 kB / 0.5557 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007372/0.8779, allocations: 43.67 kB / 0.5557 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004085/0.8783, allocations: 128.4 kB / 0.5559 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.8784, allocations: 53.3 kB / 0.5559 GB, free: 110 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005324/0.879, allocations: 368.2 kB / 0.5563 GB, free: 109.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.879, allocations: 0 / 0.5563 GB, free: 109.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001955/0.8809, allocations: 352.7 kB / 0.5566 GB, free: 109.9 MB / 426.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.0004421/0.8814, allocations: 207.8 kB / 0.5568 GB, free: 109.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002892/0.8843, allocations: 1.823 MB / 0.5586 GB, free: 109.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.8843, allocations: 3.125 kB / 0.5586 GB, free: 109.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001764/0.8861, allocations: 1.265 MB / 0.5598 GB, free: 108.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005934/0.8867, allocations: 61.92 kB / 0.5599 GB, free: 108.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004216/0.8909, allocations: 1.986 MB / 0.5618 GB, free: 108.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008786/0.8918, allocations: 1.215 MB / 0.563 GB, free: 107.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007798/0.8926, allocations: 155.7 kB / 0.5631 GB, free: 107.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002936/0.8929, allocations: 79.3 kB / 0.5632 GB, free: 107.6 MB / 426.7 MB Notification: Performance of SimCode: time 7.92e-07/0.8929, allocations: 0 / 0.5632 GB, free: 107.6 MB / 426.7 MB Notification: Performance of Templates: time 0.02619/0.9191, allocations: 15.03 MB / 0.5779 GB, free: 106.9 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches