Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002866/0.002865, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.032/2.032, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 93.33 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.699e-05/2.702e-05, allocations: 4 kB / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3376, allocations: 47.56 MB / 362.3 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1277/0.4654, allocations: 79.13 MB / 441.5 MB, free: 7.188 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003334/0.4658, allocations: 87.94 kB / 441.6 MB, free: 7.102 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04339/0.5092, allocations: 11.02 MB / 452.6 MB, free: 12.01 MB / 347.1 MB Notification: Performance of FrontEnd: time 5.351e-06/0.5092, allocations: 4 kB / 452.6 MB, free: 12.01 MB / 347.1 MB Notification: Performance of Transformations before backend: time 1.995e-05/0.5093, allocations: 4 kB / 452.6 MB, free: 12 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001821/0.5111, allocations: 0.6043 MB / 453.2 MB, free: 11.35 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.5112, allocations: 12.03 kB / 453.2 MB, free: 11.34 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001013/0.5122, allocations: 95.55 kB / 453.3 MB, free: 11.25 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000481/0.5127, allocations: 263.4 kB / 453.5 MB, free: 10.95 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.364e-05/0.5127, allocations: 8 kB / 453.6 MB, free: 10.94 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.524e-05/0.5128, allocations: 23.95 kB / 453.6 MB, free: 10.92 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006439/0.5135, allocations: 221.5 kB / 453.8 MB, free: 10.7 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007225/0.5142, allocations: 275.4 kB / 454.1 MB, free: 10.42 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.5143, allocations: 7.844 kB / 454.1 MB, free: 10.41 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.743e-05/0.5143, allocations: 0 / 454.1 MB, free: 10.41 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.5143, allocations: 8 kB / 454.1 MB, free: 10.41 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00293/0.5173, allocations: 1.388 MB / 455.5 MB, free: 8.895 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009621/0.5183, allocations: 0.6855 MB / 456.2 MB, free: 8.094 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000231/0.5185, allocations: 88.86 kB / 456.2 MB, free: 8.004 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001399/0.5187, allocations: 89.09 kB / 456.3 MB, free: 7.898 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.92e-05/0.5187, allocations: 34.56 kB / 456.4 MB, free: 7.855 MB / 347.1 MB Notification: Performance of pre-optimization done (n=24): time 3.076e-06/0.5188, allocations: 4 kB / 456.4 MB, free: 7.852 MB / 347.1 MB Notification: Performance of matching and sorting (n=24): time 0.001075/0.5198, allocations: 262.3 kB / 456.6 MB, free: 7.586 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.847e-05/0.5199, allocations: 55.41 kB / 456.7 MB, free: 7.52 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.5201, allocations: 139.3 kB / 456.8 MB, free: 7.375 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.5201, allocations: 25.7 kB / 456.8 MB, free: 7.344 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.5203, allocations: 246.6 kB / 457.1 MB, free: 7.102 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.069e-05/0.5204, allocations: 74.86 kB / 457.2 MB, free: 7.027 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.726e-05/0.5204, allocations: 0 / 457.2 MB, free: 7.027 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.5206, allocations: 330.7 kB / 457.5 MB, free: 6.695 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.5208, allocations: 56.56 kB / 457.5 MB, free: 6.637 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002095/0.521, allocations: 112.1 kB / 457.6 MB, free: 6.508 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004462/0.5214, allocations: 114 kB / 457.8 MB, free: 6.398 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.5215, allocations: 4 kB / 457.8 MB, free: 6.395 MB / 347.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001016/0.5225, allocations: 320.5 kB / 458.1 MB, free: 6.074 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.5225, allocations: 4 kB / 458.1 MB, free: 6.07 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.5226, allocations: 4 kB / 458.1 MB, free: 6.066 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004583/0.523, allocations: 77.69 kB / 458.2 MB, free: 5.988 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002715/0.5233, allocations: 35.92 kB / 458.2 MB, free: 5.953 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002581/0.5259, allocations: 1.757 MB / 459.9 MB, free: 4.082 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002195/0.5262, allocations: 23.77 kB / 460 MB, free: 4.059 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.526e-05/0.5262, allocations: 12 kB / 460 MB, free: 4.047 MB / 347.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001196/0.5263, allocations: 104.9 kB / 460.1 MB, free: 3.938 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.495e-05/0.5264, allocations: 15.81 kB / 460.1 MB, free: 3.922 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001068/0.5275, allocations: 296.8 kB / 460.4 MB, free: 3.625 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.5275, allocations: 4 kB / 460.4 MB, free: 3.621 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.5275, allocations: 4 kB / 460.4 MB, free: 3.617 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.5275, allocations: 6.047 kB / 460.4 MB, free: 3.613 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001629/0.5292, allocations: 0.652 MB / 461.1 MB, free: 2.914 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.5292, allocations: 0 / 461.1 MB, free: 2.914 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.5294, allocations: 27.98 kB / 461.1 MB, free: 2.887 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003847/0.5298, allocations: 80.75 kB / 461.2 MB, free: 2.805 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.022e-05/0.5299, allocations: 0 / 461.2 MB, free: 2.805 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/0.5324, allocations: 1.738 MB / 462.9 MB, free: 0.9531 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.5325, allocations: 0 / 462.9 MB, free: 0.9531 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001269/0.5337, allocations: 459.9 kB / 463.3 MB, free: 496 kB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001436/0.5339, allocations: 109.8 kB / 463.5 MB, free: 368 kB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.345e-05/0.534, allocations: 3.953 kB / 463.5 MB, free: 364 kB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001667/0.5341, allocations: 0 / 463.5 MB, free: 364 kB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.831e-05/0.5342, allocations: 19.97 kB / 463.5 MB, free: 344 kB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.5342, allocations: 7.938 kB / 463.5 MB, free: 336 kB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001176/0.5344, allocations: 115.1 kB / 463.6 MB, free: 220 kB / 347.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5344, allocations: 0 / 463.6 MB, free: 220 kB / 347.1 MB Notification: Performance of remove unused functions: time 0.0007041/0.5351, allocations: 95.75 kB / 463.7 MB, free: 124 kB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002958/0.5354, allocations: 123.2 kB / 463.8 MB, free: 15.98 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0008295/0.5362, allocations: 323 kB / 464.1 MB, free: 15.66 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5363, allocations: 0.9375 kB / 464.1 MB, free: 15.66 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004666/0.5367, allocations: 221.6 kB / 464.3 MB, free: 15.44 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/0.537, allocations: 8 kB / 464.4 MB, free: 15.43 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.5383, allocations: 411.6 kB / 464.8 MB, free: 15 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/0.5387, allocations: 0.7675 MB / 465.5 MB, free: 14.21 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.372e-05/0.5388, allocations: 19.44 kB / 465.5 MB, free: 14.19 MB / 363.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5388, allocations: 0.5625 kB / 465.5 MB, free: 14.19 MB / 363.1 MB Notification: Performance of Templates: time 0.009006/0.5479, allocations: 3.738 MB / 469.3 MB, free: 10.47 MB / 363.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches