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.001612/0.001612, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001725/0.001725, allocations: 212.2 kB / 24.48 MB, free: 3.977 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.456/1.456, allocations: 230.6 MB / 258.2 MB, free: 7.824 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.001544/0.001544, allocations: 47.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2189, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004216/0.2231, allocations: 2.662 MB / 435 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001888/0.225, allocations: 1.137 MB / 436.1 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001262/0.2251, allocations: 12 kB / 436.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001531/0.2266, allocations: 0.5756 MB / 436.7 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003091/0.227, allocations: 143 kB / 436.9 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.2283, allocations: 0.6022 MB / 437.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003837/0.2286, allocations: 302.6 kB / 437.8 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004209/0.2291, allocations: 242.8 kB / 438 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.2293, allocations: 143.5 kB / 438.1 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002203/0.2295, allocations: 167.3 kB / 438.3 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.897e-05/0.2295, allocations: 28 kB / 438.3 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003244/0.2299, allocations: 183.8 kB / 438.5 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.519e-05/0.2299, allocations: 51.86 kB / 438.6 MB, free: 496 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001253/0.23, allocations: 123.4 kB / 438.7 MB, free: 372 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006357/0.2307, allocations: 0.5011 MB / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2307, allocations: 0 / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2307, allocations: 4 kB / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.2307, allocations: 0 / 439.2 MB, free: 15.86 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.0017/0.2324, allocations: 0.6534 MB / 439.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.053e-05/0.2324, allocations: 8.031 kB / 439.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008799/0.2333, allocations: 116.7 kB / 440 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003399/0.2336, allocations: 210.6 kB / 440.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.172e-05/0.2337, allocations: 29.03 kB / 440.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.598e-05/0.2337, allocations: 28.38 kB / 440.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000586/0.2343, allocations: 344.9 kB / 440.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.2343, allocations: 0 / 440.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.2344, allocations: 8 kB / 440.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.2344, allocations: 8 kB / 440.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004403/0.2348, allocations: 242.5 kB / 440.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001881/0.2367, allocations: 1.039 MB / 441.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005303/0.2372, allocations: 234.6 kB / 442.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.2374, allocations: 97.52 kB / 442.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000102/0.2375, allocations: 11.98 kB / 442.2 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.2375, allocations: 42.5 kB / 442.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.2375, allocations: 0 / 442.2 MB, free: 12.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001259/0.2388, allocations: 414 kB / 442.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.2388, allocations: 55.41 kB / 442.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001592/0.239, allocations: 158.2 kB / 442.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.518e-05/0.239, allocations: 33.64 kB / 442.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.2391, allocations: 188.2 kB / 443.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.801e-05/0.2392, allocations: 75.34 kB / 443.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.719e-05/0.2393, allocations: 61.92 kB / 443.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.2394, allocations: 322.8 kB / 443.5 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.2396, allocations: 76.53 kB / 443.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.2397, allocations: 137 kB / 443.7 MB, free: 11.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003246/0.2401, allocations: 220 kB / 443.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.2401, allocations: 4 kB / 443.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000614/0.2407, allocations: 328.3 kB / 444.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.2407, allocations: 4 kB / 444.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.2407, allocations: 7.984 kB / 444.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003176/0.241, allocations: 76.97 kB / 444.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001746/0.2412, allocations: 43.92 kB / 444.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/0.2433, allocations: 1.891 MB / 446.3 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.2435, allocations: 23.83 kB / 446.3 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.148e-05/0.2435, allocations: 12 kB / 446.3 MB, free: 8.363 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.000151/0.2436, allocations: 153.8 kB / 446.5 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.786e-05/0.2437, allocations: 15.91 kB / 446.5 MB, free: 8.188 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006312/0.2443, allocations: 283.3 kB / 446.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.2443, allocations: 4 kB / 446.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.2443, allocations: 7.984 kB / 446.8 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2443, allocations: 4 kB / 446.8 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009475/0.2453, allocations: 0.5758 MB / 447.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.2453, allocations: 288 / 447.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001302/0.2454, allocations: 20 kB / 447.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002605/0.2457, allocations: 84.73 kB / 447.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.2457, allocations: 7.938 kB / 447.5 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001994/0.2477, allocations: 1.88 MB / 449.3 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2477, allocations: 3.984 kB / 449.3 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006934/0.2484, allocations: 444.7 kB / 449.8 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.37e-05/0.2484, allocations: 35.8 kB / 449.8 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.756e-05/0.2485, allocations: 7.984 kB / 449.8 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.2486, allocations: 8 kB / 449.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.014e-05/0.2486, allocations: 11.97 kB / 449.8 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.2487, allocations: 12 kB / 449.8 MB, free: 4.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.562e-05/0.2488, allocations: 121.4 kB / 450 MB, free: 4.531 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2488, allocations: 0 / 450 MB, free: 4.531 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004796/0.2492, allocations: 95.78 kB / 450.1 MB, free: 4.438 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.0002005/0.2494, allocations: 127.5 kB / 450.2 MB, free: 4.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006349/0.2501, allocations: 349.4 kB / 450.5 MB, free: 3.953 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2501, allocations: 0 / 450.5 MB, free: 3.953 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003633/0.2504, allocations: 250.3 kB / 450.8 MB, free: 3.695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.2508, allocations: 19.98 kB / 450.8 MB, free: 3.676 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.2518, allocations: 0.5592 MB / 451.3 MB, free: 3.086 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.2519, allocations: 150.4 kB / 451.5 MB, free: 2.922 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.958e-05/0.252, allocations: 17.95 kB / 451.5 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.258e-05/0.2521, allocations: 19.42 kB / 451.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2521, allocations: 0 / 451.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of Templates: time 0.007435/0.2595, allocations: 3.037 MB / 454.6 MB, free: 15.87 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/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.318478843997582]