Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|leakageWithCoefficient.port_p.reference.gamma",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 43.92 kB / 373.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1172, allocations: 53.33 MB / 426.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004797/0.122, allocations: 2.867 MB / 429.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002268/0.1242, allocations: 1.226 MB / 430.9 MB, free: 156 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002427/0.1245, allocations: 11.94 kB / 430.9 MB, free: 144 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2132/0.3377, allocations: 0.6062 MB / 431.5 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005974/0.3383, allocations: 138.7 kB / 431.6 MB, free: 8.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.3396, allocations: 0.6519 MB / 432.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004787/0.3401, allocations: 295.2 kB / 432.6 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004697/0.3406, allocations: 213.8 kB / 432.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002716/0.3408, allocations: 136.7 kB / 432.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.3411, allocations: 168.1 kB / 433.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.134e-05/0.3411, allocations: 25.84 kB / 433.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004368/0.3415, allocations: 180.8 kB / 433.3 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.953e-05/0.3416, allocations: 66.61 kB / 433.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001582/0.3418, allocations: 149.2 kB / 433.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007498/0.3425, allocations: 0.4984 MB / 434 MB, free: 7.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.3425, allocations: 2.438 kB / 434 MB, free: 7.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3425, allocations: 0 / 434 MB, free: 7.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.3425, allocations: 5.031 kB / 434 MB, free: 7.867 MB / 350.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.001803/0.3443, allocations: 0.7322 MB / 434.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.3444, allocations: 9.125 kB / 434.8 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008706/0.3453, allocations: 119.1 kB / 434.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003949/0.3456, allocations: 264.7 kB / 435.1 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.3457, allocations: 21.97 kB / 435.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.368e-05/0.3457, allocations: 32.88 kB / 435.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006456/0.3464, allocations: 337.1 kB / 435.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/0.3464, allocations: 5.062 kB / 435.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.386e-05/0.3464, allocations: 10 kB / 435.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.3465, allocations: 7.875 kB / 435.5 MB, free: 7.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004324/0.3469, allocations: 246.9 kB / 435.8 MB, free: 7.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/0.3489, allocations: 1.442 MB / 437.2 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006729/0.3495, allocations: 0.6777 MB / 437.9 MB, free: 5.633 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.3497, allocations: 99.52 kB / 438 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001758/0.3499, allocations: 169.8 kB / 438.2 MB, free: 5.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.3499, allocations: 40.17 kB / 438.2 MB, free: 5.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.154e-06/0.3499, allocations: 1.594 kB / 438.2 MB, free: 5.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001399/0.3513, allocations: 0.4911 MB / 438.7 MB, free: 5.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.771e-05/0.3514, allocations: 55.16 kB / 438.7 MB, free: 5.035 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/0.3516, allocations: 169 kB / 438.9 MB, free: 4.906 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.3516, allocations: 33.7 kB / 438.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.745e-05/0.3517, allocations: 179.2 kB / 439.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.59e-05/0.3517, allocations: 88.27 kB / 439.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.601e-05/0.3518, allocations: 53.69 kB / 439.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.493e-05/0.3519, allocations: 327.5 kB / 439.6 MB, free: 4.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.352, allocations: 68.08 kB / 439.6 MB, free: 4.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.3522, allocations: 132.3 kB / 439.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002914/0.3525, allocations: 222.3 kB / 440 MB, free: 4.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3525, allocations: 1.156 kB / 440 MB, free: 4.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0006128/0.3531, allocations: 324.2 kB / 440.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.3531, allocations: 11.5 kB / 440.3 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3531, allocations: 6.188 kB / 440.3 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003849/0.3535, allocations: 74.72 kB / 440.4 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001854/0.3537, allocations: 42.92 kB / 440.4 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001905/0.3556, allocations: 2.034 MB / 442.5 MB, free: 2.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001823/0.3558, allocations: 27.42 kB / 442.5 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.296e-05/0.3558, allocations: 13.42 kB / 442.5 MB, free: 1.996 MB / 350.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.0001644/0.356, allocations: 146.8 kB / 442.7 MB, free: 1.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.599e-05/0.356, allocations: 19.11 kB / 442.7 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006488/0.3567, allocations: 286 kB / 443 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.3567, allocations: 2.656 kB / 443 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3567, allocations: 3.922 kB / 443 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3567, allocations: 1.172 kB / 443 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.3579, allocations: 0.6878 MB / 443.6 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.3579, allocations: 1.219 kB / 443.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.358, allocations: 23.77 kB / 443.7 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002942/0.3583, allocations: 80.98 kB / 443.8 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.3583, allocations: 6.156 kB / 443.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00221/0.3605, allocations: 2.028 MB / 445.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3605, allocations: 0 / 445.8 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000785/0.3613, allocations: 457.4 kB / 446.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.3614, allocations: 113.5 kB / 446.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.735e-05/0.3615, allocations: 5.875 kB / 446.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.3616, allocations: 12.47 kB / 446.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.395e-05/0.3617, allocations: 14.91 kB / 446.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.3617, allocations: 10.42 kB / 446.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001323/0.3618, allocations: 121.3 kB / 446.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3618, allocations: 0 / 446.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005966/0.3624, allocations: 104.4 kB / 446.6 MB, free: 14.84 MB / 366.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.0002616/0.3627, allocations: 122.3 kB / 446.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007698/0.3634, allocations: 341.2 kB / 447.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3634, allocations: 8.375 kB / 447.1 MB, free: 14.54 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003831/0.3638, allocations: 239 kB / 447.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.3642, allocations: 24.19 kB / 447.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.3654, allocations: 0.5675 MB / 447.9 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004819/0.3659, allocations: 0.7548 MB / 448.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.366, allocations: 22.62 kB / 448.7 MB, free: 13.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.532e-05/0.366, allocations: 17.41 kB / 448.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.366, allocations: 1.375 kB / 448.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of Templates: time 0.009791/0.3758, allocations: 2.779 MB / 451.5 MB, free: 13.04 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.700290575623512]