Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001503/0.001503, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001644/0.001644, allocations: 213.5 kB / 24.52 MB, free: 3.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 230.5 MB / 258.2 MB, free: 7.766 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 59.89 kB / 378.5 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2679, allocations: 53.39 MB / 431.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004101/0.272, allocations: 2.67 MB / 434.6 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001891/0.2738, allocations: 1.121 MB / 435.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.274, allocations: 8 kB / 435.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001481/0.2755, allocations: 0.5864 MB / 436.3 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003374/0.2758, allocations: 143 kB / 436.4 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.2771, allocations: 0.6109 MB / 437 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004145/0.2775, allocations: 298.6 kB / 437.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004204/0.2779, allocations: 236.9 kB / 437.6 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002085/0.2781, allocations: 139.4 kB / 437.7 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002231/0.2783, allocations: 167.4 kB / 437.9 MB, free: 464 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.105e-05/0.2784, allocations: 27.98 kB / 437.9 MB, free: 436 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003229/0.2787, allocations: 179.9 kB / 438.1 MB, free: 256 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.778e-05/0.2788, allocations: 59.72 kB / 438.1 MB, free: 196 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.2789, allocations: 127.5 kB / 438.2 MB, free: 68 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006112/0.2795, allocations: 0.4943 MB / 438.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2795, allocations: 0 / 438.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2795, allocations: 0 / 438.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.2795, allocations: 0 / 438.7 MB, free: 15.57 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.001618/0.2811, allocations: 0.6534 MB / 439.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.2812, allocations: 12.03 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.564e-05/0.2812, allocations: 16.78 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.974e-05/0.2812, allocations: 66.72 kB / 439.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007994/0.282, allocations: 120.6 kB / 439.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003633/0.2824, allocations: 210.7 kB / 439.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.77e-05/0.2824, allocations: 21.03 kB / 439.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.97e-05/0.2825, allocations: 35.94 kB / 439.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005655/0.2831, allocations: 337 kB / 440.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.2831, allocations: 4 kB / 440.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.2831, allocations: 16 kB / 440.2 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.2831, allocations: 8 kB / 440.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004146/0.2835, allocations: 238.5 kB / 440.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001844/0.2854, allocations: 1.09 MB / 441.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004976/0.2859, allocations: 237.4 kB / 441.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.286, allocations: 107.9 kB / 441.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001128/0.2862, allocations: 15.98 kB / 441.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.505e-05/0.2862, allocations: 30.56 kB / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.2862, allocations: 4 kB / 441.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001203/0.2874, allocations: 422.2 kB / 442.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.2874, allocations: 55.41 kB / 442.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001777/0.2876, allocations: 175.3 kB / 442.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.2876, allocations: 29.7 kB / 442.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001212/0.2877, allocations: 184.3 kB / 442.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.085e-05/0.2878, allocations: 91.22 kB / 442.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.495e-05/0.2879, allocations: 53.98 kB / 442.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.288, allocations: 322.8 kB / 443.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.2882, allocations: 72.53 kB / 443.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.2883, allocations: 133.2 kB / 443.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000318/0.2886, allocations: 220.9 kB / 443.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.2887, allocations: 3.938 kB / 443.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005803/0.2892, allocations: 323.7 kB / 444 MB, free: 10.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.2892, allocations: 8.219 kB / 444 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2893, allocations: 4 kB / 444 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003178/0.2896, allocations: 76.81 kB / 444.1 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.2897, allocations: 43.91 kB / 444.1 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002029/0.2918, allocations: 1.915 MB / 446 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.2919, allocations: 19.84 kB / 446 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.824e-05/0.2919, allocations: 12 kB / 446.1 MB, free: 7.863 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.0001465/0.2921, allocations: 153.6 kB / 446.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.998e-05/0.2921, allocations: 23.8 kB / 446.2 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005608/0.2927, allocations: 281.1 kB / 446.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.2927, allocations: 0 / 446.5 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/0.2927, allocations: 4 kB / 446.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.2927, allocations: 3.984 kB / 446.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000966/0.2937, allocations: 0.6349 MB / 447.1 MB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.2937, allocations: 4 kB / 447.1 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.2938, allocations: 27.98 kB / 447.2 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002293/0.294, allocations: 72.75 kB / 447.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.294, allocations: 7.984 kB / 447.3 MB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00197/0.296, allocations: 1.907 MB / 449.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.296, allocations: 288 / 449.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006699/0.2967, allocations: 452.3 kB / 449.6 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.166e-05/0.2967, allocations: 39.86 kB / 449.6 MB, free: 4.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.2968, allocations: 7.938 kB / 449.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.2969, allocations: 0 / 449.6 MB, free: 4.055 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.2969, allocations: 28.08 kB / 449.7 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.2969, allocations: 4 kB / 449.7 MB, free: 4.023 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001057/0.297, allocations: 127.2 kB / 449.8 MB, free: 3.898 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.297, allocations: 0 / 449.8 MB, free: 3.898 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004786/0.2975, allocations: 103.7 kB / 449.9 MB, free: 3.797 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.00108/0.2986, allocations: 0.9947 MB / 450.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006433/0.2992, allocations: 343 kB / 451.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2992, allocations: 0 / 451.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003571/0.2996, allocations: 250.6 kB / 451.5 MB, free: 2.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.2999, allocations: 19.98 kB / 451.5 MB, free: 2.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00326/0.3032, allocations: 2.511 MB / 454 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001529/0.3033, allocations: 142.4 kB / 454.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.3034, allocations: 29.94 kB / 454.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.3036, allocations: 71.41 kB / 454.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3036, allocations: 0 / 454.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3144/0.618, allocations: 5.5 MB / 459.7 MB, free: 9.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/13.16, allocations: 7.203 kB / 459.8 MB, free: 9.887 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 15.553878788952716]