Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009745/0.0009746, allocations: 172.1 kB / 14.1 MB, free: 1.223 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.311/1.311, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007995/0.0007995, allocations: 86.66 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.352e-05/2.356e-05, allocations: 4 kB / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0812/0.08124, allocations: 47.56 MB / 370 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2898/0.3711, allocations: 93.59 MB / 463.6 MB, free: 15.86 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002027/0.3713, allocations: 80.98 kB / 463.7 MB, free: 15.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09319/0.4645, allocations: 37.4 MB / 0.4893 GB, free: 11.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4646, allocations: 0 / 0.4893 GB, free: 11.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.076e-05/0.4646, allocations: 28 kB / 0.4894 GB, free: 11.43 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.004209/0.4688, allocations: 1.607 MB / 0.4909 GB, free: 9.762 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.4689, allocations: 12.03 kB / 0.491 GB, free: 9.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003257/0.4722, allocations: 0.5056 MB / 0.4914 GB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.4736, allocations: 0.7543 MB / 0.4922 GB, free: 8.441 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001402/0.4737, allocations: 140.7 kB / 0.4923 GB, free: 8.297 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002243/0.474, allocations: 159.9 kB / 0.4925 GB, free: 8.141 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002357/0.4763, allocations: 1.281 MB / 0.4937 GB, free: 6.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.712e-05/0.4764, allocations: 11.94 kB / 0.4937 GB, free: 6.828 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001394/0.4765, allocations: 60 kB / 0.4938 GB, free: 6.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.656e-05/0.4766, allocations: 36 kB / 0.4938 GB, free: 6.734 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0021/0.4787, allocations: 1.23 MB / 0.495 GB, free: 5.496 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007998/0.4867, allocations: 5.082 MB / 0.5 GB, free: 168 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002767/0.4895, allocations: 2.368 MB / 0.5023 GB, free: 13.53 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000842/0.4904, allocations: 0.5286 MB / 0.5028 GB, free: 13 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001687/0.4905, allocations: 114.3 kB / 0.5029 GB, free: 12.88 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00118/0.4917, allocations: 0.6972 MB / 0.5036 GB, free: 12.14 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 4.058e-06/0.4917, allocations: 0 / 0.5036 GB, free: 12.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=165): time 0.01172/0.5035, allocations: 4.939 MB / 0.5084 GB, free: 7.125 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.5037, allocations: 226.9 kB / 0.5086 GB, free: 6.855 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007568/0.5044, allocations: 0.5503 MB / 0.5092 GB, free: 6.301 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001283/0.5046, allocations: 61.69 kB / 0.5092 GB, free: 6.234 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004483/0.505, allocations: 0.5739 MB / 0.5098 GB, free: 5.648 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004082/0.5054, allocations: 0.5352 MB / 0.5103 GB, free: 5.105 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.535e-05/0.5055, allocations: 32 kB / 0.5104 GB, free: 5.074 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.5057, allocations: 418.7 kB / 0.5108 GB, free: 4.656 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007873/0.5065, allocations: 468 kB / 0.5112 GB, free: 4.199 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009933/0.5075, allocations: 0.8293 MB / 0.512 GB, free: 3.227 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009416/0.5084, allocations: 0.579 MB / 0.5126 GB, free: 2.648 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.5085, allocations: 4 kB / 0.5126 GB, free: 2.645 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003793/0.5123, allocations: 1.953 MB / 0.5145 GB, free: 0.668 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/0.5123, allocations: 8 kB / 0.5145 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/0.5123, allocations: 12 kB / 0.5145 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001497/0.5138, allocations: 479.8 kB / 0.515 GB, free: 172 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.5151, allocations: 307.5 kB / 0.5153 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0093/0.5244, allocations: 8.581 MB / 0.5236 GB, free: 6.758 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001277/0.5257, allocations: 91.88 kB / 0.5237 GB, free: 6.668 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.5259, allocations: 67.98 kB / 0.5238 GB, free: 6.602 MB / 410.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 () * 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.0003063/0.5262, allocations: 223.7 kB / 0.524 GB, free: 6.379 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/0.5264, allocations: 110.6 kB / 0.5241 GB, free: 6.27 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003886/0.5302, allocations: 1.766 MB / 0.5258 GB, free: 4.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.688e-05/0.5303, allocations: 19.95 kB / 0.5259 GB, free: 4.461 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.5303, allocations: 8 kB / 0.5259 GB, free: 4.453 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.772e-05/0.5303, allocations: 15.97 kB / 0.5259 GB, free: 4.438 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005874/0.5362, allocations: 3.593 MB / 0.5294 GB, free: 0.7617 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.5362, allocations: 7.953 kB / 0.5294 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009997/0.5372, allocations: 219.7 kB / 0.5296 GB, free: 0.5391 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001371/0.5386, allocations: 447.1 kB / 0.53 GB, free: 92 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/0.5387, allocations: 39.97 kB / 0.5301 GB, free: 52 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1949/0.7336, allocations: 8.308 MB / 0.5382 GB, free: 104.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.7337, allocations: 2.219 kB / 0.5382 GB, free: 104.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00478/0.7385, allocations: 2.518 MB / 0.5406 GB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005509/0.739, allocations: 297.2 kB / 0.5409 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.7392, allocations: 39.12 kB / 0.541 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007526/0.74, allocations: 64.84 kB / 0.541 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003517/0.7403, allocations: 135.5 kB / 0.5411 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/0.7404, allocations: 51.91 kB / 0.5412 GB, free: 104 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005124/0.741, allocations: 417.1 kB / 0.5416 GB, free: 103.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.332e-06/0.741, allocations: 0 / 0.5416 GB, free: 103.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0016/0.7426, allocations: 436.1 kB / 0.542 GB, free: 103.9 MB / 410.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) * 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.0003829/0.743, allocations: 248.2 kB / 0.5422 GB, free: 103.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002961/0.7459, allocations: 1.973 MB / 0.5442 GB, free: 103.3 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.746, allocations: 1.25 kB / 0.5442 GB, free: 103.3 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001879/0.7478, allocations: 1.341 MB / 0.5455 GB, free: 102.8 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006059/0.7485, allocations: 91.94 kB / 0.5456 GB, free: 102.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006251/0.7547, allocations: 2.638 MB / 0.5482 GB, free: 102.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008068/0.7556, allocations: 1.217 MB / 0.5493 GB, free: 101.5 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008769/0.7564, allocations: 163.5 kB / 0.5495 GB, free: 101.5 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000257/0.7567, allocations: 88.06 kB / 0.5496 GB, free: 101.5 MB / 410.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7567, allocations: 0 / 0.5496 GB, free: 101.5 MB / 410.7 MB Notification: Performance of Templates: time 0.02394/0.7807, allocations: 16.48 MB / 0.5657 GB, free: 100.7 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat","/var/lib/jenkins/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_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches