Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 174.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 221.3 MB / 235.5 MB, free: 2.965 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.000869/0.0008687, allocations: 92.72 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.194e-05/2.196e-05, allocations: 4 kB / 343.8 MB, free: 4.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0821/0.08214, allocations: 50.41 MB / 394.3 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3191/0.4012, allocations: 88.16 MB / 482.4 MB, free: 15.37 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002254/0.4015, allocations: 95.77 kB / 482.5 MB, free: 15.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07931/0.4808, allocations: 35.51 MB / 0.5059 GB, free: 11.31 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4809, allocations: 4 kB / 0.5059 GB, free: 11.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.299e-05/0.4809, allocations: 20 kB / 0.5059 GB, free: 11.29 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.004167/0.4851, allocations: 1.484 MB / 0.5074 GB, free: 9.754 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.4851, allocations: 8.031 kB / 0.5074 GB, free: 9.746 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002917/0.488, allocations: 454.2 kB / 0.5078 GB, free: 9.301 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002959/0.4883, allocations: 297.7 kB / 0.5081 GB, free: 8.969 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.082e-05/0.4884, allocations: 102.6 kB / 0.5082 GB, free: 8.867 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/0.4886, allocations: 131.9 kB / 0.5083 GB, free: 8.738 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002008/0.4906, allocations: 1.218 MB / 0.5095 GB, free: 7.488 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.917e-05/0.4907, allocations: 7.938 kB / 0.5095 GB, free: 7.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.4908, allocations: 55.94 kB / 0.5096 GB, free: 7.426 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.378e-05/0.4908, allocations: 32 kB / 0.5096 GB, free: 7.395 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00181/0.4927, allocations: 1.08 MB / 0.5106 GB, free: 6.309 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006303/0.499, allocations: 4.264 MB / 0.5148 GB, free: 1.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002181/0.5012, allocations: 2.237 MB / 0.517 GB, free: 15.35 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008194/0.502, allocations: 0.5079 MB / 0.5175 GB, free: 14.84 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001518/0.5022, allocations: 110.1 kB / 0.5176 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.5022, allocations: 43.56 kB / 0.5176 GB, free: 14.66 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 3.336e-06/0.5022, allocations: 0 / 0.5176 GB, free: 14.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.006823/0.5091, allocations: 2.783 MB / 0.5203 GB, free: 11.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.5091, allocations: 90.11 kB / 0.5204 GB, free: 11.71 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003829/0.5095, allocations: 339.4 kB / 0.5208 GB, free: 11.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.404e-05/0.5096, allocations: 45.7 kB / 0.5208 GB, free: 11.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002413/0.5099, allocations: 458.9 kB / 0.5212 GB, free: 10.87 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002719/0.5101, allocations: 429.7 kB / 0.5216 GB, free: 10.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.834e-05/0.5102, allocations: 24 kB / 0.5217 GB, free: 10.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.5103, allocations: 374.8 kB / 0.522 GB, free: 10.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005911/0.5109, allocations: 348 kB / 0.5224 GB, free: 9.703 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007532/0.5117, allocations: 0.6242 MB / 0.523 GB, free: 8.969 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007288/0.5124, allocations: 453 kB / 0.5234 GB, free: 8.531 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/0.5125, allocations: 4 kB / 0.5234 GB, free: 8.527 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.002119/0.5146, allocations: 1.302 MB / 0.5247 GB, free: 7.211 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.5146, allocations: 8 kB / 0.5247 GB, free: 7.203 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.5146, allocations: 8 kB / 0.5247 GB, free: 7.195 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005156/0.5152, allocations: 193.6 kB / 0.5249 GB, free: 7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.5165, allocations: 307.5 kB / 0.5252 GB, free: 6.699 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003795/0.5203, allocations: 3.967 MB / 0.529 GB, free: 2.465 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009649/0.5212, allocations: 92 kB / 0.5291 GB, free: 2.375 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.241e-05/0.5214, allocations: 59.92 kB / 0.5292 GB, free: 2.316 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 144 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 12,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002101/0.5216, allocations: 176.6 kB / 0.5294 GB, free: 2.137 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.5217, allocations: 71.16 kB / 0.5294 GB, free: 2.066 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002183/0.5239, allocations: 1.202 MB / 0.5306 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.5239, allocations: 15.94 kB / 0.5306 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.5239, allocations: 4 kB / 0.5306 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.5239, allocations: 3.984 kB / 0.5306 GB, free: 0.832 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003589/0.5275, allocations: 2.369 MB / 0.5329 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.5275, allocations: 0 / 0.5329 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009974/0.5286, allocations: 231.8 kB / 0.5332 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004282/0.529, allocations: 166.1 kB / 0.5333 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.779e-05/0.5291, allocations: 31.94 kB / 0.5333 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003324/0.5324, allocations: 3.779 MB / 0.537 GB, free: 9.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.5324, allocations: 3.938 kB / 0.537 GB, free: 9.906 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002496/0.5349, allocations: 1.678 MB / 0.5387 GB, free: 8.172 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003117/0.5352, allocations: 228.2 kB / 0.5389 GB, free: 7.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.229e-05/0.5353, allocations: 28.06 kB / 0.5389 GB, free: 7.902 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007082/0.5361, allocations: 67.95 kB / 0.539 GB, free: 7.836 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.5363, allocations: 100.8 kB / 0.5391 GB, free: 7.734 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.705e-05/0.5363, allocations: 35.98 kB / 0.5391 GB, free: 7.699 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002725/0.5366, allocations: 254.2 kB / 0.5394 GB, free: 7.449 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5366, allocations: 0 / 0.5394 GB, free: 7.449 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001018/0.5376, allocations: 320 kB / 0.5397 GB, free: 7.137 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (voltageSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 104 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003058/0.538, allocations: 215.6 kB / 0.5399 GB, free: 6.922 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0019/0.5399, allocations: 1.284 MB / 0.5411 GB, free: 5.609 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.5399, allocations: 1.938 kB / 0.5411 GB, free: 5.609 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.5409, allocations: 0.7956 MB / 0.5419 GB, free: 4.789 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003209/0.5413, allocations: 49.28 kB / 0.542 GB, free: 4.742 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/0.544, allocations: 1.37 MB / 0.5433 GB, free: 3.336 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005188/0.5446, allocations: 1.025 MB / 0.5443 GB, free: 2.281 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007554/0.5453, allocations: 154.6 kB / 0.5444 GB, free: 2.125 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002546/0.5456, allocations: 79.34 kB / 0.5445 GB, free: 2.047 MB / 426.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5456, allocations: 0 / 0.5445 GB, free: 2.047 MB / 426.7 MB Notification: Performance of Templates: time 0.2077/0.7534, allocations: 9.639 MB / 0.5539 GB, free: 110.6 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches