Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001515/0.001515, allocations: 183.9 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.407/1.407, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 43.92 kB / 370.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2402, allocations: 52.19 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004401/0.2446, allocations: 2.879 MB / 425.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002045/0.2466, allocations: 1.164 MB / 426.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.2468, allocations: 12 kB / 426.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001619/0.2484, allocations: 0.6145 MB / 427.3 MB, free: 9.879 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003402/0.2487, allocations: 131.1 kB / 427.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.2501, allocations: 0.7034 MB / 428.1 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004224/0.2505, allocations: 294.6 kB / 428.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004248/0.251, allocations: 236.2 kB / 428.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001861/0.2512, allocations: 131.5 kB / 428.8 MB, free: 8.398 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002486/0.2514, allocations: 171.3 kB / 428.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.286e-05/0.2514, allocations: 27.98 kB / 429 MB, free: 8.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003677/0.2518, allocations: 175.9 kB / 429.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.537e-05/0.2519, allocations: 55.83 kB / 429.2 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000155/0.252, allocations: 155.2 kB / 429.4 MB, free: 7.824 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006588/0.2527, allocations: 0.5015 MB / 429.9 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.2527, allocations: 0 / 429.9 MB, free: 7.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2527, allocations: 3.938 kB / 429.9 MB, free: 7.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.2527, allocations: 0 / 429.9 MB, free: 7.32 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.001643/0.2543, allocations: 0.6573 MB / 430.5 MB, free: 6.629 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.2544, allocations: 8.031 kB / 430.5 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.542e-05/0.2545, allocations: 74.72 kB / 430.6 MB, free: 6.539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000784/0.2553, allocations: 120.7 kB / 430.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004031/0.2557, allocations: 202.1 kB / 430.9 MB, free: 6.203 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.817e-05/0.2557, allocations: 29.03 kB / 430.9 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.317e-05/0.2558, allocations: 36.12 kB / 431 MB, free: 6.141 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005799/0.2563, allocations: 333 kB / 431.3 MB, free: 5.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.2564, allocations: 3.953 kB / 431.3 MB, free: 5.805 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.2564, allocations: 12 kB / 431.3 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.2564, allocations: 8 kB / 431.3 MB, free: 5.785 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004433/0.2568, allocations: 242.5 kB / 431.6 MB, free: 5.547 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.2589, allocations: 1.368 MB / 432.9 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005142/0.2595, allocations: 238.6 kB / 433.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.2596, allocations: 92.77 kB / 433.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.053e-05/0.2597, allocations: 4 kB / 433.3 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.2597, allocations: 42.56 kB / 433.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.343e-06/0.2597, allocations: 0 / 433.3 MB, free: 3.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001235/0.261, allocations: 413.8 kB / 433.7 MB, free: 3.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.146e-05/0.261, allocations: 59.34 kB / 433.8 MB, free: 3.184 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.2612, allocations: 173.1 kB / 433.9 MB, free: 3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.2612, allocations: 29.7 kB / 434 MB, free: 2.965 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.2613, allocations: 184.4 kB / 434.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.887e-05/0.2614, allocations: 83.27 kB / 434.2 MB, free: 2.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.958e-05/0.2615, allocations: 61.92 kB / 434.3 MB, free: 2.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.2617, allocations: 326.8 kB / 434.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.2618, allocations: 64.53 kB / 434.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001779/0.262, allocations: 133 kB / 434.8 MB, free: 2.09 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003198/0.2623, allocations: 220.4 kB / 435 MB, free: 1.852 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2623, allocations: 4 kB / 435 MB, free: 1.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005857/0.2629, allocations: 319.6 kB / 435.3 MB, free: 1.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.2629, allocations: 4 kB / 435.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2629, allocations: 4.219 kB / 435.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003339/0.2632, allocations: 84.73 kB / 435.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.2634, allocations: 43.92 kB / 435.5 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/0.2656, allocations: 1.922 MB / 437.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/0.2658, allocations: 27.78 kB / 437.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.2658, allocations: 12.06 kB / 437.4 MB, free: 15.3 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.0001452/0.2659, allocations: 146.5 kB / 437.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.754e-05/0.266, allocations: 19.84 kB / 437.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005782/0.2666, allocations: 288.1 kB / 437.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2666, allocations: 4 kB / 437.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2666, allocations: 3.984 kB / 437.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.2666, allocations: 0 / 437.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.2676, allocations: 0.6609 MB / 438.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2676, allocations: 0 / 438.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.2677, allocations: 23.98 kB / 438.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002389/0.2679, allocations: 85.02 kB / 438.6 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.268, allocations: 7.938 kB / 438.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002114/0.2701, allocations: 1.919 MB / 440.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.147e-06/0.2701, allocations: 3.984 kB / 440.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006893/0.2708, allocations: 440.7 kB / 441 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.509e-05/0.2708, allocations: 35.83 kB / 441 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.626e-05/0.2709, allocations: 7.984 kB / 441 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000115/0.271, allocations: 0 / 441 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.604e-05/0.271, allocations: 23.91 kB / 441.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.271, allocations: 12.06 kB / 441.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001213/0.2712, allocations: 131.5 kB / 441.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2712, allocations: 0 / 441.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004793/0.2716, allocations: 99.77 kB / 441.3 MB, free: 11.22 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.001114/0.2728, allocations: 1.004 MB / 442.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006287/0.2734, allocations: 334.6 kB / 442.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2734, allocations: 0 / 442.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003498/0.2737, allocations: 238.8 kB / 442.9 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.2741, allocations: 19.94 kB / 442.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003373/0.2774, allocations: 2.523 MB / 445.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004247/0.2779, allocations: 0.756 MB / 446.2 MB, free: 6.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.99e-05/0.2779, allocations: 25.94 kB / 446.2 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.2781, allocations: 71.41 kB / 446.3 MB, free: 6.062 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2781, allocations: 0 / 446.3 MB, free: 6.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03832/0.3164, allocations: 5.315 MB / 451.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.84/12.16, allocations: 18.28 kB / 451.6 MB, free: 0.8633 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.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: 14.50484143011272]