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.001834/0.001834, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.002126/0.002126, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.497/1.497, allocations: 230.6 MB / 254.1 MB, free: 15.09 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 51.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.102, allocations: 53.33 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004345/0.1064, allocations: 2.875 MB / 429.2 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.1085, allocations: 1.219 MB / 430.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.1086, allocations: 7.938 kB / 430.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001547/0.1101, allocations: 0.6146 MB / 431 MB, free: 40 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1881/0.2982, allocations: 138.2 kB / 431.2 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.2995, allocations: 0.6492 MB / 431.8 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004156/0.2999, allocations: 299.2 kB / 432.1 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003816/0.3003, allocations: 203.9 kB / 432.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.3005, allocations: 140.3 kB / 432.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.3007, allocations: 164.9 kB / 432.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.223e-05/0.3007, allocations: 26.56 kB / 432.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003952/0.3011, allocations: 191 kB / 432.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.579e-05/0.3012, allocations: 62.3 kB / 432.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.3013, allocations: 144.6 kB / 433 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005589/0.3018, allocations: 0.5026 MB / 433.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3018, allocations: 1.875 kB / 433.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3018, allocations: 1.406 kB / 433.5 MB, free: 7.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.3018, allocations: 1.781 kB / 433.5 MB, free: 7.383 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.001585/0.3034, allocations: 0.7326 MB / 434.3 MB, free: 6.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.3035, allocations: 12.88 kB / 434.3 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.764e-05/0.3035, allocations: 68.52 kB / 434.3 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008253/0.3044, allocations: 114.6 kB / 434.5 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003265/0.3047, allocations: 267.5 kB / 434.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.3047, allocations: 26.25 kB / 434.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.362e-05/0.3048, allocations: 36.42 kB / 434.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004824/0.3053, allocations: 334.6 kB / 435.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.3053, allocations: 3.453 kB / 435.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.925e-05/0.3053, allocations: 15.38 kB / 435.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.3053, allocations: 8.75 kB / 435.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004024/0.3057, allocations: 237.5 kB / 435.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.3075, allocations: 1.439 MB / 436.8 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005333/0.308, allocations: 0.6782 MB / 437.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.3082, allocations: 96.78 kB / 437.6 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001421/0.3083, allocations: 182.2 kB / 437.7 MB, free: 4.965 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.345e-05/0.3083, allocations: 35.5 kB / 437.8 MB, free: 4.922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.874e-06/0.3083, allocations: 1.094 kB / 437.8 MB, free: 4.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001228/0.3095, allocations: 492.6 kB / 438.3 MB, free: 4.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.478e-05/0.3096, allocations: 62.06 kB / 438.3 MB, free: 4.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.3097, allocations: 168.9 kB / 438.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.3097, allocations: 31.7 kB / 438.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.328e-05/0.3098, allocations: 178.2 kB / 438.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.019e-05/0.3098, allocations: 91.41 kB / 438.8 MB, free: 4.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.629e-05/0.3099, allocations: 49.61 kB / 438.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.754e-05/0.31, allocations: 328.8 kB / 439.2 MB, free: 3.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.3101, allocations: 66.2 kB / 439.2 MB, free: 3.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.3102, allocations: 132.4 kB / 439.3 MB, free: 3.754 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002602/0.3105, allocations: 222.3 kB / 439.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3105, allocations: 0 / 439.6 MB, free: 3.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005692/0.311, allocations: 333.2 kB / 439.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.3111, allocations: 5.875 kB / 439.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.3111, allocations: 2.188 kB / 439.9 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003222/0.3114, allocations: 76.16 kB / 440 MB, free: 3.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.3116, allocations: 47.81 kB / 440 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001636/0.3132, allocations: 2.032 MB / 442.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.3133, allocations: 28.16 kB / 442.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.841e-05/0.3134, allocations: 11.88 kB / 442.1 MB, free: 1.617 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.0001082/0.3135, allocations: 144.2 kB / 442.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.582e-05/0.3135, allocations: 23.7 kB / 442.3 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005609/0.3141, allocations: 278.8 kB / 442.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3141, allocations: 2.734 kB / 442.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.3141, allocations: 2.125 kB / 442.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.3141, allocations: 1.406 kB / 442.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009149/0.315, allocations: 0.6951 MB / 443.2 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.315, allocations: 1.188 kB / 443.2 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001255/0.3151, allocations: 27.67 kB / 443.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002435/0.3154, allocations: 70.12 kB / 443.3 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.3154, allocations: 6.188 kB / 443.3 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001959/0.3173, allocations: 2.032 MB / 445.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3173, allocations: 1.906 kB / 445.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008253/0.3182, allocations: 459.3 kB / 445.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.3183, allocations: 111.9 kB / 445.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.601e-05/0.3183, allocations: 5.984 kB / 445.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.3184, allocations: 8.688 kB / 445.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.402e-05/0.3185, allocations: 19.14 kB / 446 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.3185, allocations: 9.922 kB / 446 MB, free: 14.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001473/0.3186, allocations: 124.6 kB / 446.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3186, allocations: 1 kB / 446.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005376/0.3192, allocations: 96.55 kB / 446.2 MB, free: 14.51 MB / 366.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.001147/0.3203, allocations: 1.003 MB / 447.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006614/0.321, allocations: 341.6 kB / 447.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.321, allocations: 0 / 447.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003694/0.3214, allocations: 246.6 kB / 447.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.3217, allocations: 24.19 kB / 447.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003421/0.3251, allocations: 2.5 MB / 450.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004078/0.3255, allocations: 0.7556 MB / 451 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.823e-05/0.3256, allocations: 22.14 kB / 451.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.3257, allocations: 72.81 kB / 451.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3257, allocations: 0 / 451.1 MB, free: 10.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03484/0.3606, allocations: 5.209 MB / 456.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.24/10.6, allocations: 5.359 kB / 456.3 MB, free: 10.02 MB / 366.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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] "Error: Could not read variable leakageWithCoefficient.port_p.reference.gamma in file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv. Warning: Get data of variable leakageWithCoefficient.port_p.reference.gamma from file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.105958362997626]