Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.00177/0.00177, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.002193/0.002193, allocations: 216.7 kB / 24.49 MB, free: 4.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.429/1.429, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 55.92 kB / 347.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2665, allocations: 49.16 MB / 396.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.003557/0.27, allocations: 2.741 MB / 399.1 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001627/0.2716, allocations: 1.213 MB / 400.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001503/0.2718, allocations: 6.406 kB / 400.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001434/0.2732, allocations: 0.618 MB / 400.9 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003287/0.2736, allocations: 131 kB / 401.1 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.2748, allocations: 0.6608 MB / 401.7 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003839/0.2752, allocations: 290.5 kB / 402 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000399/0.2756, allocations: 250 kB / 402.2 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001705/0.2757, allocations: 131.2 kB / 402.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002214/0.2759, allocations: 171.9 kB / 402.5 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.353e-05/0.276, allocations: 25.06 kB / 402.6 MB, free: 4.926 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003981/0.2764, allocations: 177.3 kB / 402.7 MB, free: 4.875 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.909e-05/0.2764, allocations: 61.36 kB / 402.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000129/0.2766, allocations: 145.2 kB / 402.9 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006315/0.2772, allocations: 0.4928 MB / 403.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2772, allocations: 0 / 403.4 MB, free: 4.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2772, allocations: 3.938 kB / 403.4 MB, free: 4.531 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.605e-06/0.2772, allocations: 0 / 403.4 MB, free: 4.531 MB / 318.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.001503/0.2787, allocations: 0.6535 MB / 404.1 MB, free: 4.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.2788, allocations: 10.25 kB / 404.1 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.134e-05/0.2788, allocations: 75.75 kB / 404.2 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007857/0.2796, allocations: 124.2 kB / 404.3 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002963/0.2799, allocations: 202.5 kB / 404.5 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.2799, allocations: 26.16 kB / 404.5 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.134e-05/0.28, allocations: 36.38 kB / 404.6 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004688/0.2805, allocations: 336 kB / 404.9 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.2805, allocations: 1.609 kB / 404.9 MB, free: 3.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.714e-05/0.2805, allocations: 11.47 kB / 404.9 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.2805, allocations: 11.25 kB / 404.9 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003815/0.2809, allocations: 241.2 kB / 405.1 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001769/0.2827, allocations: 1.369 MB / 406.5 MB, free: 2.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000459/0.2831, allocations: 240.5 kB / 406.7 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.2833, allocations: 93.31 kB / 406.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.102e-05/0.2833, allocations: 8.141 kB / 406.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.141e-05/0.2834, allocations: 36.52 kB / 406.9 MB, free: 2.246 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.2834, allocations: 0 / 406.9 MB, free: 2.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.00117/0.2845, allocations: 413.6 kB / 407.3 MB, free: 2.086 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.334e-05/0.2845, allocations: 58.09 kB / 407.3 MB, free: 2.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.2847, allocations: 174.1 kB / 407.5 MB, free: 1.891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/0.2847, allocations: 31.08 kB / 407.5 MB, free: 1.855 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.381e-05/0.2848, allocations: 178.6 kB / 407.7 MB, free: 1.703 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.795e-05/0.2848, allocations: 88.33 kB / 407.8 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.288e-05/0.2849, allocations: 53.28 kB / 407.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.649e-05/0.285, allocations: 328.1 kB / 408.2 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00011/0.2851, allocations: 70.06 kB / 408.2 MB, free: 1.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.2852, allocations: 132.1 kB / 408.4 MB, free: 1.152 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002511/0.2855, allocations: 212.9 kB / 408.6 MB, free: 1.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2855, allocations: 0 / 408.6 MB, free: 1.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005239/0.286, allocations: 332.2 kB / 408.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.286, allocations: 5.906 kB / 408.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.286, allocations: 2.438 kB / 408.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003109/0.2863, allocations: 80.36 kB / 409 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001556/0.2865, allocations: 46.12 kB / 409 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/0.2884, allocations: 1.925 MB / 411 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.2885, allocations: 30.36 kB / 411 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/0.2885, allocations: 16.69 kB / 411 MB, free: 15.09 MB / 334.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.0001712/0.2887, allocations: 144.4 kB / 411.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.796e-05/0.2888, allocations: 24.06 kB / 411.2 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005708/0.2893, allocations: 284.4 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2893, allocations: 2.75 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2894, allocations: 1.406 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.2894, allocations: 0.7969 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.2904, allocations: 0.6604 MB / 412.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/0.2904, allocations: 0.6094 kB / 412.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.2905, allocations: 24.28 kB / 412.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002318/0.2907, allocations: 72.31 kB / 412.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.2908, allocations: 13.61 kB / 412.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002092/0.2928, allocations: 1.915 MB / 414.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2928, allocations: 0.6094 kB / 414.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006892/0.2935, allocations: 453.7 kB / 414.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.294e-05/0.2936, allocations: 34.11 kB / 414.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.426e-05/0.2936, allocations: 2.062 kB / 414.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.2938, allocations: 10.5 kB / 414.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.819e-05/0.2938, allocations: 23.66 kB / 414.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.195e-05/0.2938, allocations: 5.156 kB / 414.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001216/0.2939, allocations: 129.7 kB / 414.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2939, allocations: 0 / 414.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005152/0.2945, allocations: 94.5 kB / 414.9 MB, free: 12.19 MB / 334.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.001108/0.2956, allocations: 1.001 MB / 415.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006423/0.2962, allocations: 332.6 kB / 416.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.2962, allocations: 0 / 416.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003552/0.2966, allocations: 248.1 kB / 416.4 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.2969, allocations: 17.31 kB / 416.5 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003257/0.3001, allocations: 2.52 MB / 419 MB, free: 8.961 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.3006, allocations: 0.7581 MB / 419.7 MB, free: 8.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.496e-05/0.3007, allocations: 23.44 kB / 419.8 MB, free: 8.215 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.3008, allocations: 71.31 kB / 419.8 MB, free: 8.156 MB / 334.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3008, allocations: 0 / 419.8 MB, free: 8.156 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03478/0.3355, allocations: 5.241 MB / 425.1 MB, free: 5.305 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.27, allocations: 5.438 kB / 425.1 MB, free: 5.301 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv. Warning: Get data of variable leakageWithCoefficient.port_p.reference.gamma from file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.763958875999379]