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.001514/0.001514, allocations: 108.8 kB / 21.22 MB, free: 0.75 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.001577/0.001577, allocations: 187.8 kB / 24.5 MB, free: 4.02 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.348/1.348, allocations: 225.7 MB / 253.3 MB, free: 13.04 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 43.92 kB / 371.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2292/0.2307, allocations: 52.17 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004362/0.2351, allocations: 2.887 MB / 426.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.2369, allocations: 1.156 MB / 427.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001183/0.237, allocations: 8 kB / 427.5 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001585/0.2386, allocations: 0.6223 MB / 428.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000319/0.2389, allocations: 143 kB / 428.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001385/0.2403, allocations: 0.6758 MB / 428.9 MB, free: 9.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004573/0.2407, allocations: 310.5 kB / 429.2 MB, free: 8.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004564/0.2412, allocations: 232.3 kB / 429.4 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002069/0.2414, allocations: 139.5 kB / 429.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.2417, allocations: 163.4 kB / 429.7 MB, free: 8.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.943e-05/0.2417, allocations: 24 kB / 429.8 MB, free: 8.254 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003654/0.2421, allocations: 175.9 kB / 429.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.13e-05/0.2421, allocations: 63.77 kB / 430 MB, free: 8.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001658/0.2423, allocations: 147.3 kB / 430.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006463/0.2429, allocations: 0.5056 MB / 430.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2429, allocations: 4 kB / 430.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2429, allocations: 0 / 430.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.243, allocations: 0 / 430.6 MB, free: 7.367 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.001653/0.2446, allocations: 0.6573 MB / 431.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.2447, allocations: 16.02 kB / 431.3 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.501e-05/0.2447, allocations: 8.844 kB / 431.3 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.836e-05/0.2448, allocations: 70.72 kB / 431.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008024/0.2456, allocations: 120.7 kB / 431.5 MB, free: 6.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003798/0.246, allocations: 198.8 kB / 431.7 MB, free: 6.238 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.246, allocations: 21.03 kB / 431.7 MB, free: 6.219 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.995e-05/0.246, allocations: 35.94 kB / 431.8 MB, free: 6.184 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005608/0.2466, allocations: 337.1 kB / 432.1 MB, free: 5.844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.2466, allocations: 7.953 kB / 432.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.203e-05/0.2467, allocations: 16 kB / 432.1 MB, free: 5.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.2467, allocations: 8 kB / 432.1 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004083/0.2471, allocations: 238.5 kB / 432.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001969/0.249, allocations: 1.368 MB / 433.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005098/0.2495, allocations: 236.5 kB / 433.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001496/0.2497, allocations: 88.83 kB / 434 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.063e-05/0.2498, allocations: 15.97 kB / 434.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.2498, allocations: 38.56 kB / 434.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.282e-06/0.2498, allocations: 0 / 434.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001213/0.251, allocations: 417.7 kB / 434.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.706e-05/0.251, allocations: 55.41 kB / 434.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.2512, allocations: 173.1 kB / 434.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.344e-05/0.2513, allocations: 29.7 kB / 434.7 MB, free: 3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.2514, allocations: 184.4 kB / 434.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.106e-05/0.2515, allocations: 83.27 kB / 435 MB, free: 2.734 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.51e-05/0.2515, allocations: 53.94 kB / 435.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.2517, allocations: 330.8 kB / 435.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.2518, allocations: 64.55 kB / 435.4 MB, free: 2.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001944/0.252, allocations: 140.9 kB / 435.6 MB, free: 2.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000305/0.2523, allocations: 216.4 kB / 435.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.2523, allocations: 3.938 kB / 435.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005893/0.2529, allocations: 323.7 kB / 436.1 MB, free: 1.559 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.2529, allocations: 4 kB / 436.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2529, allocations: 224 / 436.1 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003068/0.2532, allocations: 84.69 kB / 436.2 MB, free: 1.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.2534, allocations: 43.97 kB / 436.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002119/0.2555, allocations: 1.926 MB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001376/0.2557, allocations: 27.78 kB / 438.2 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.2557, allocations: 12.06 kB / 438.2 MB, free: 15.34 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.0001534/0.2558, allocations: 145.8 kB / 438.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.59e-05/0.2559, allocations: 23.78 kB / 438.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000548/0.2564, allocations: 280.1 kB / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2564, allocations: 0 / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2564, allocations: 4 kB / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.2564, allocations: 7.969 kB / 438.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009683/0.2574, allocations: 0.657 MB / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.2574, allocations: 0 / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.2575, allocations: 27.92 kB / 439.3 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002237/0.2577, allocations: 77.03 kB / 439.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.2578, allocations: 8 kB / 439.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002/0.2598, allocations: 1.919 MB / 441.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.2598, allocations: 4.031 kB / 441.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006665/0.2604, allocations: 448.5 kB / 441.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.844e-05/0.2605, allocations: 31.86 kB / 441.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.662e-05/0.2605, allocations: 8 kB / 441.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.2606, allocations: 4 kB / 441.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/0.2607, allocations: 19.95 kB / 441.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.2607, allocations: 12.06 kB / 441.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000119/0.2608, allocations: 123.5 kB / 442 MB, free: 11.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2608, allocations: 0 / 442 MB, free: 11.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00047/0.2613, allocations: 103.7 kB / 442.1 MB, free: 11.25 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.001109/0.2624, allocations: 1.008 MB / 443.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006018/0.263, allocations: 334.5 kB / 443.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.263, allocations: 0 / 443.4 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003395/0.2633, allocations: 242.4 kB / 443.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.2636, allocations: 15.98 kB / 443.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003262/0.2669, allocations: 2.523 MB / 446.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/0.2673, allocations: 0.756 MB / 447 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.18e-05/0.2674, allocations: 25.94 kB / 447 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.2675, allocations: 71.41 kB / 447 MB, free: 6.098 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2675, allocations: 0 / 447 MB, free: 6.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03006/0.2976, allocations: 5.355 MB / 452.4 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.86, allocations: 15.48 kB / 452.4 MB, free: 0.875 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.192703353997786]