Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001787/0.001787, allocations: 116.3 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002263/0.002263, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.032/2.032, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002291/0.002291, allocations: 55.91 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4359/0.4382, allocations: 50.54 MB / 409.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.006317/0.4445, allocations: 2.83 MB / 412.8 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002884/0.4475, allocations: 1.211 MB / 414 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003/0.4478, allocations: 8 kB / 414 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002142/0.45, allocations: 0.6185 MB / 414.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006245/0.4506, allocations: 131 kB / 414.7 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001922/0.4526, allocations: 0.6573 MB / 415.4 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007207/0.4533, allocations: 298.6 kB / 415.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007136/0.454, allocations: 266.5 kB / 415.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003493/0.4544, allocations: 139.5 kB / 416.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003736/0.4548, allocations: 163.4 kB / 416.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.291e-05/0.4549, allocations: 24 kB / 416.3 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006174/0.4555, allocations: 187.8 kB / 416.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.555e-05/0.4556, allocations: 63.7 kB / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002334/0.4559, allocations: 143.3 kB / 416.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009698/0.4568, allocations: 0.4997 MB / 417.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.4569, allocations: 0 / 417.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4569, allocations: 0 / 417.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.481e-05/0.4569, allocations: 0 / 417.1 MB, free: 10.34 MB / 334.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.002669/0.4596, allocations: 0.7256 MB / 417.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/0.4596, allocations: 8.031 kB / 417.9 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001362/0.461, allocations: 120.5 kB / 418 MB, free: 9.438 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000604/0.4616, allocations: 264.5 kB / 418.3 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.061e-05/0.4617, allocations: 29.02 kB / 418.3 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.188e-05/0.4618, allocations: 36.38 kB / 418.3 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008331/0.4626, allocations: 337 kB / 418.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.499e-05/0.4627, allocations: 0 / 418.6 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.653e-05/0.4627, allocations: 12 kB / 418.7 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.4628, allocations: 8 kB / 418.7 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006443/0.4634, allocations: 242.5 kB / 418.9 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002985/0.4664, allocations: 1.435 MB / 420.3 MB, free: 6.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001009/0.4674, allocations: 0.7 MB / 421 MB, free: 6.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002508/0.4677, allocations: 108.8 kB / 421.1 MB, free: 5.984 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002597/0.468, allocations: 174.1 kB / 421.3 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.468, allocations: 38.56 kB / 421.4 MB, free: 5.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.474e-06/0.468, allocations: 0 / 421.4 MB, free: 5.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.00183/0.4699, allocations: 495.3 kB / 421.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.4699, allocations: 55.41 kB / 421.9 MB, free: 5.152 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.4702, allocations: 171.3 kB / 422.1 MB, free: 4.969 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.081e-05/0.4702, allocations: 33.7 kB / 422.1 MB, free: 4.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.4704, allocations: 176 kB / 422.3 MB, free: 4.754 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.472e-05/0.4705, allocations: 82.75 kB / 422.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.4707, allocations: 57.89 kB / 422.4 MB, free: 4.609 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001665/0.4709, allocations: 330.8 kB / 422.7 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.471, allocations: 60.55 kB / 422.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.4713, allocations: 137 kB / 422.9 MB, free: 4.062 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004516/0.4718, allocations: 216.9 kB / 423.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.4718, allocations: 0 / 423.1 MB, free: 3.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0008832/0.4727, allocations: 335.5 kB / 423.5 MB, free: 3.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.65e-05/0.4727, allocations: 11.03 kB / 423.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.4727, allocations: 7.938 kB / 423.5 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004652/0.4732, allocations: 68.81 kB / 423.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.4735, allocations: 47.91 kB / 423.6 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003116/0.4766, allocations: 2.041 MB / 425.6 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002274/0.4768, allocations: 27.69 kB / 425.7 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.4769, allocations: 8 kB / 425.7 MB, free: 1.141 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002057/0.4771, allocations: 137.8 kB / 425.8 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.19e-05/0.4772, allocations: 19.75 kB / 425.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008207/0.478, allocations: 285.6 kB / 426.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.478, allocations: 4 kB / 426.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.4781, allocations: 0 / 426.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.4781, allocations: 3.984 kB / 426.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001493/0.4796, allocations: 0.6933 MB / 426.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4796, allocations: 0 / 426.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001785/0.4798, allocations: 31.94 kB / 426.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000342/0.4801, allocations: 68.8 kB / 426.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.4802, allocations: 8 kB / 426.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00284/0.483, allocations: 2.018 MB / 428.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4831, allocations: 4.062 kB / 428.9 MB, free: 13.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009739/0.484, allocations: 452.2 kB / 429.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.4842, allocations: 112.9 kB / 429.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.776e-05/0.4843, allocations: 8 kB / 429.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001845/0.4844, allocations: 4 kB / 429.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.424e-05/0.4845, allocations: 24.03 kB / 429.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.4846, allocations: 4 kB / 429.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001563/0.4847, allocations: 127.2 kB / 429.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4847, allocations: 0 / 429.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008486/0.4856, allocations: 95.69 kB / 429.7 MB, free: 12.8 MB / 350.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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003075/0.4859, allocations: 131.2 kB / 429.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008861/0.4868, allocations: 358.2 kB / 430.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.4868, allocations: 4 kB / 430.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004917/0.4873, allocations: 252.3 kB / 430.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000498/0.4878, allocations: 18.39 kB / 430.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/0.4894, allocations: 0.5959 MB / 431.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/0.4899, allocations: 0.756 MB / 431.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.832e-05/0.49, allocations: 23.42 kB / 431.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of SimCode: time 4.7e-07/0.49, allocations: 0 / 431.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of Templates: time 0.009225/0.4992, allocations: 4.055 MB / 435.9 MB, free: 6.535 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches