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.001436/0.001436, allocations: 182.6 kB / 18.04 MB, free: 3.785 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.341/1.341, allocations: 205.4 MB / 224.2 MB, free: 9.047 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.0007208/0.0007211, allocations: 78.39 kB / 272.5 MB, free: 8.293 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003003/0.0003003, allocations: 8 kB / 329.5 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1881/0.1885, allocations: 47.57 MB / 377 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09677/0.2853, allocations: 93.83 MB / 470.9 MB, free: 2.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003209/0.2856, allocations: 87.95 kB / 470.9 MB, free: 2.637 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2335/0.5191, allocations: 37.41 MB / 0.4964 GB, free: 91.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.5192, allocations: 3.188 kB / 0.4964 GB, free: 91.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.634e-05/0.5192, allocations: 26.59 kB / 0.4965 GB, free: 91.48 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.00427/0.5235, allocations: 1.694 MB / 0.4981 GB, free: 90.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.5236, allocations: 12.72 kB / 0.4981 GB, free: 90.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003081/0.5267, allocations: 0.5069 MB / 0.4986 GB, free: 90.6 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001205/0.5279, allocations: 0.7728 MB / 0.4994 GB, free: 90.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001222/0.528, allocations: 148.9 kB / 0.4995 GB, free: 90.24 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002163/0.5282, allocations: 162.5 kB / 0.4997 GB, free: 90.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002501/0.5308, allocations: 1.376 MB / 0.501 GB, free: 90.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.647e-05/0.5308, allocations: 6.344 kB / 0.501 GB, free: 90.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.5309, allocations: 69.52 kB / 0.5011 GB, free: 90.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.482e-05/0.531, allocations: 37.59 kB / 0.5011 GB, free: 90.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003014/0.534, allocations: 1.385 MB / 0.5025 GB, free: 90.13 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007353/0.5414, allocations: 5.079 MB / 0.5074 GB, free: 88.61 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002449/0.5439, allocations: 2.454 MB / 0.5098 GB, free: 87.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009612/0.5449, allocations: 0.5934 MB / 0.5104 GB, free: 87.13 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001184/0.545, allocations: 112.3 kB / 0.5105 GB, free: 87.04 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/0.5462, allocations: 0.7646 MB / 0.5113 GB, free: 86.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=134): time 3.587e-06/0.5462, allocations: 0 / 0.5113 GB, free: 86.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=165): time 0.0125/0.5587, allocations: 6.081 MB / 0.5172 GB, free: 84.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.561e-05/0.5588, allocations: 237.5 kB / 0.5174 GB, free: 84.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006252/0.5594, allocations: 0.6269 MB / 0.518 GB, free: 84.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.039e-05/0.5595, allocations: 56.02 kB / 0.5181 GB, free: 84.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002934/0.5598, allocations: 0.5807 MB / 0.5187 GB, free: 83.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002661/0.5601, allocations: 0.5424 MB / 0.5192 GB, free: 83.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.341e-05/0.5602, allocations: 34.56 kB / 0.5192 GB, free: 83.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.5603, allocations: 416.3 kB / 0.5196 GB, free: 82.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009351/0.5612, allocations: 0.5209 MB / 0.5201 GB, free: 82.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.5623, allocations: 0.901 MB / 0.521 GB, free: 82.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002168/0.5645, allocations: 1.508 MB / 0.5225 GB, free: 81.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.292e-06/0.5645, allocations: 6.062 kB / 0.5225 GB, free: 81.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003764/0.5683, allocations: 2.076 MB / 0.5245 GB, free: 80.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.5683, allocations: 10.28 kB / 0.5245 GB, free: 80.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.5684, allocations: 10.97 kB / 0.5245 GB, free: 80.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001799/0.5702, allocations: 0.5252 MB / 0.5251 GB, free: 80.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.5712, allocations: 312.5 kB / 0.5254 GB, free: 80.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007492/0.5788, allocations: 8.598 MB / 0.5338 GB, free: 73.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.5799, allocations: 87.56 kB / 0.5338 GB, free: 73.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.58, allocations: 72.84 kB / 0.5339 GB, free: 73.18 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.0005988/0.5806, allocations: 363.7 kB / 0.5343 GB, free: 72.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.5808, allocations: 109.8 kB / 0.5344 GB, free: 72.85 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003748/0.5845, allocations: 1.895 MB / 0.5362 GB, free: 72.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.5845, allocations: 17.19 kB / 0.5362 GB, free: 72.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.5846, allocations: 7.375 kB / 0.5362 GB, free: 72.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.5846, allocations: 6.516 kB / 0.5362 GB, free: 72.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005557/0.5901, allocations: 3.713 MB / 0.5399 GB, free: 69.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.095e-06/0.5902, allocations: 3.938 kB / 0.5399 GB, free: 69.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008938/0.5911, allocations: 215 kB / 0.5401 GB, free: 69.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001771/0.5929, allocations: 0.5028 MB / 0.5406 GB, free: 69 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000112/0.593, allocations: 35.61 kB / 0.5406 GB, free: 68.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007002/0.6, allocations: 8.331 MB / 0.5487 GB, free: 60.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.6001, allocations: 8.094 kB / 0.5487 GB, free: 60.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00471/0.6048, allocations: 2.66 MB / 0.5513 GB, free: 58.13 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004263/0.6052, allocations: 300.5 kB / 0.5516 GB, free: 57.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.6054, allocations: 36 kB / 0.5517 GB, free: 57.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006754/0.606, allocations: 71.84 kB / 0.5517 GB, free: 57.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002447/0.6063, allocations: 128.5 kB / 0.5518 GB, free: 57.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-05/0.6064, allocations: 46.84 kB / 0.5519 GB, free: 57.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004312/0.6068, allocations: 430.6 kB / 0.5523 GB, free: 57.28 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6068, allocations: 4 kB / 0.5523 GB, free: 57.28 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001401/0.6082, allocations: 431.3 kB / 0.5527 GB, free: 56.86 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.0002933/0.6085, allocations: 221.8 kB / 0.5529 GB, free: 56.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003126/0.6117, allocations: 2.129 MB / 0.555 GB, free: 54.66 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.6117, allocations: 4.062 kB / 0.555 GB, free: 54.66 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001765/0.6135, allocations: 1.423 MB / 0.5564 GB, free: 53.31 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008871/0.6144, allocations: 126.1 kB / 0.5565 GB, free: 53.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004631/0.619, allocations: 3.354 MB / 0.5598 GB, free: 50.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005672/0.6196, allocations: 1.191 MB / 0.561 GB, free: 49.06 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007997/0.6204, allocations: 164.1 kB / 0.5611 GB, free: 48.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.6207, allocations: 82.7 kB / 0.5612 GB, free: 48.88 MB / 378.7 MB Notification: Performance of SimCode: time 5.41e-07/0.6207, allocations: 0 / 0.5612 GB, free: 48.88 MB / 378.7 MB Notification: Performance of Templates: time 0.02167/0.6423, allocations: 16.27 MB / 0.5771 GB, free: 34.54 MB / 378.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/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_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches