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.001178/0.001178, allocations: 112.2 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.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.001248/0.001248, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.325/1.325, allocations: 230.6 MB / 258.3 MB, free: 8.035 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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_4_1_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_1_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.001423/0.001423, allocations: 47.94 kB / 378.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2766, allocations: 53.37 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004933/0.2816, allocations: 2.874 MB / 434.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.2835, allocations: 1.234 MB / 436 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.2837, allocations: 7.938 kB / 436.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.2852, allocations: 0.6253 MB / 436.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003299/0.2855, allocations: 139 kB / 436.8 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001261/0.2867, allocations: 0.6576 MB / 437.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004037/0.2872, allocations: 294.6 kB / 437.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000399/0.2876, allocations: 240.2 kB / 438 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001963/0.2877, allocations: 139.5 kB / 438.1 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.288, allocations: 171.3 kB / 438.3 MB, free: 500 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.647e-05/0.288, allocations: 28 kB / 438.3 MB, free: 472 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003247/0.2883, allocations: 179.9 kB / 438.5 MB, free: 292 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.099e-05/0.2884, allocations: 63.77 kB / 438.6 MB, free: 228 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.2885, allocations: 151.3 kB / 438.7 MB, free: 76 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006659/0.2892, allocations: 0.4976 MB / 439.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2892, allocations: 0 / 439.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2892, allocations: 0 / 439.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.089e-05/0.2892, allocations: 0 / 439.2 MB, free: 15.58 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.001622/0.2908, allocations: 0.6573 MB / 439.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2909, allocations: 8.031 kB / 439.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.104e-05/0.2909, allocations: 12.84 kB / 439.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.789e-05/0.291, allocations: 70.72 kB / 440 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007746/0.2917, allocations: 124.6 kB / 440.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003838/0.2921, allocations: 206.7 kB / 440.3 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.535e-05/0.2921, allocations: 21.03 kB / 440.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.984e-05/0.2922, allocations: 35.94 kB / 440.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005343/0.2927, allocations: 340.9 kB / 440.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.2928, allocations: 0 / 440.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.269e-05/0.2928, allocations: 16 kB / 440.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.2928, allocations: 8 kB / 440.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004082/0.2932, allocations: 238.5 kB / 440.9 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.2951, allocations: 1.372 MB / 442.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005033/0.2956, allocations: 246.4 kB / 442.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.2958, allocations: 92.83 kB / 442.6 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001134/0.2959, allocations: 15.97 kB / 442.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.763e-05/0.296, allocations: 42.55 kB / 442.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.293e-06/0.296, allocations: 0 / 442.7 MB, free: 11.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001206/0.2972, allocations: 415.9 kB / 443.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.2972, allocations: 55.41 kB / 443.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001743/0.2974, allocations: 175.2 kB / 443.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.2974, allocations: 29.7 kB / 443.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000118/0.2975, allocations: 176.3 kB / 443.5 MB, free: 11.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.14e-05/0.2976, allocations: 91.27 kB / 443.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.634e-05/0.2977, allocations: 53.98 kB / 443.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.2978, allocations: 334.8 kB / 444 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.2979, allocations: 60.55 kB / 444 MB, free: 10.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.2981, allocations: 137 kB / 444.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003071/0.2984, allocations: 216 kB / 444.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2984, allocations: 3.938 kB / 444.4 MB, free: 10.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005732/0.299, allocations: 328.7 kB / 444.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.299, allocations: 8 kB / 444.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.299, allocations: 3.984 kB / 444.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003116/0.2993, allocations: 80.8 kB / 444.8 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.2995, allocations: 44.05 kB / 444.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002086/0.3016, allocations: 1.942 MB / 446.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001289/0.3017, allocations: 23.84 kB / 446.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.95e-05/0.3017, allocations: 12 kB / 446.8 MB, free: 7.508 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.0001371/0.3018, allocations: 145.7 kB / 447 MB, free: 7.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.848e-05/0.3019, allocations: 27.86 kB / 447 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005334/0.3024, allocations: 283.9 kB / 447.3 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.3024, allocations: 4 kB / 447.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.434e-06/0.3024, allocations: 0 / 447.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.3024, allocations: 4 kB / 447.3 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009612/0.3034, allocations: 0.6505 MB / 447.9 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.3034, allocations: 0 / 447.9 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.3035, allocations: 23.98 kB / 447.9 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002201/0.3037, allocations: 80.75 kB / 448 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.814e-05/0.3038, allocations: 7.984 kB / 448 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001892/0.3056, allocations: 1.922 MB / 450 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3056, allocations: 0 / 450 MB, free: 4.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006602/0.3063, allocations: 460.4 kB / 450.4 MB, free: 3.711 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.782e-05/0.3064, allocations: 35.84 kB / 450.4 MB, free: 3.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.767e-05/0.3064, allocations: 11.98 kB / 450.5 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.3065, allocations: 8 kB / 450.5 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/0.3066, allocations: 11.97 kB / 450.5 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.3066, allocations: 11.94 kB / 450.5 MB, free: 3.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001048/0.3067, allocations: 127.2 kB / 450.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3067, allocations: 0 / 450.6 MB, free: 3.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004748/0.3071, allocations: 107.8 kB / 450.7 MB, free: 3.402 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.00105/0.3082, allocations: 0.993 MB / 451.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000592/0.3088, allocations: 334.5 kB / 452 MB, free: 2.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.3088, allocations: 4.375 kB / 452 MB, free: 2.039 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003446/0.3091, allocations: 246.3 kB / 452.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.3095, allocations: 23.98 kB / 452.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003135/0.3126, allocations: 2.506 MB / 454.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003822/0.313, allocations: 0.7638 MB / 455.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.75e-05/0.3131, allocations: 18.14 kB / 455.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.3132, allocations: 71.41 kB / 455.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3132, allocations: 7.938 kB / 455.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4335/0.7467, allocations: 5.429 MB / 461.1 MB, free: 8.969 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.61, allocations: 3.641 kB / 461.1 MB, free: 8.969 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] 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: 14.887594428029843]