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.001879/0.001879, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.00222/0.00222, allocations: 188.6 kB / 23.71 MB, free: 4.188 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.419/1.419, allocations: 225.7 MB / 252.5 MB, free: 12.86 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="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 51.92 kB / 370.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2341, allocations: 52.19 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.004377/0.2385, allocations: 2.649 MB / 425.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.2403, allocations: 1.086 MB / 426.3 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001204/0.2404, allocations: 8 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001478/0.2419, allocations: 0.5639 MB / 426.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003032/0.2422, allocations: 143 kB / 427 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001326/0.2435, allocations: 0.6248 MB / 427.7 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003843/0.2439, allocations: 294.6 kB / 427.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004166/0.2443, allocations: 232.9 kB / 428.2 MB, free: 8.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001914/0.2445, allocations: 139.5 kB / 428.3 MB, free: 8.656 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.2447, allocations: 143.3 kB / 428.4 MB, free: 8.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.341e-05/0.2448, allocations: 24 kB / 428.5 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003179/0.2451, allocations: 171.9 kB / 428.6 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.6e-05/0.2452, allocations: 63.77 kB / 428.7 MB, free: 8.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001182/0.2453, allocations: 119.5 kB / 428.8 MB, free: 8.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006046/0.2459, allocations: 0.4981 MB / 429.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.207e-06/0.2459, allocations: 0 / 429.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2459, allocations: 0 / 429.3 MB, free: 7.645 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.2459, allocations: 0 / 429.3 MB, free: 7.645 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.001596/0.2475, allocations: 0.6573 MB / 430 MB, free: 6.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2475, allocations: 16.03 kB / 430 MB, free: 6.938 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.405e-05/0.2476, allocations: 66.72 kB / 430 MB, free: 6.863 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008154/0.2484, allocations: 128.6 kB / 430.2 MB, free: 6.738 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.2488, allocations: 206.7 kB / 430.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.2488, allocations: 21.03 kB / 430.4 MB, free: 6.492 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.144e-05/0.2489, allocations: 40.12 kB / 430.4 MB, free: 6.453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000538/0.2494, allocations: 329.1 kB / 430.8 MB, free: 6.125 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.2494, allocations: 3.953 kB / 430.8 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.168e-05/0.2495, allocations: 16 kB / 430.8 MB, free: 6.105 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.2495, allocations: 8 kB / 430.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004201/0.2499, allocations: 242.5 kB / 431 MB, free: 5.859 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001872/0.2518, allocations: 1.078 MB / 432.1 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004911/0.2523, allocations: 240.4 kB / 432.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.2524, allocations: 96.77 kB / 432.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.811e-05/0.2525, allocations: 15.98 kB / 432.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.2525, allocations: 30.56 kB / 432.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.2525, allocations: 0 / 432.5 MB, free: 4.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001177/0.2537, allocations: 413.7 kB / 432.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.052e-05/0.2537, allocations: 55.41 kB / 432.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001881/0.2539, allocations: 177.1 kB / 433.1 MB, free: 3.648 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/0.2539, allocations: 33.7 kB / 433.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.254, allocations: 184.4 kB / 433.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.223e-05/0.2541, allocations: 87.22 kB / 433.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.01e-05/0.2542, allocations: 49.98 kB / 433.5 MB, free: 3.285 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.2543, allocations: 326.8 kB / 433.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.2545, allocations: 68.53 kB / 433.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001865/0.2547, allocations: 137 kB / 434 MB, free: 2.734 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003239/0.255, allocations: 220.4 kB / 434.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.255, allocations: 0 / 434.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0005883/0.2556, allocations: 323.6 kB / 434.5 MB, free: 2.172 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.2556, allocations: 15.33 kB / 434.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.2556, allocations: 4 kB / 434.5 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002965/0.2559, allocations: 72.75 kB / 434.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.2561, allocations: 43.92 kB / 434.6 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002139/0.2582, allocations: 1.914 MB / 436.6 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001535/0.2583, allocations: 31.97 kB / 436.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.2584, allocations: 12 kB / 436.6 MB, free: 15.96 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.0001563/0.2585, allocations: 141.8 kB / 436.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.761e-05/0.2586, allocations: 23.61 kB / 436.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000578/0.2592, allocations: 292.1 kB / 437 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2592, allocations: 0 / 437 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.2592, allocations: 7.984 kB / 437 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2592, allocations: 0 / 437 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009997/0.2602, allocations: 0.626 MB / 437.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.2602, allocations: 0 / 437.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001257/0.2603, allocations: 27.98 kB / 437.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002321/0.2605, allocations: 76.97 kB / 437.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.2606, allocations: 8 kB / 437.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002064/0.2626, allocations: 1.911 MB / 439.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.2626, allocations: 0 / 439.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006796/0.2633, allocations: 440.5 kB / 440.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.699e-05/0.2634, allocations: 39.84 kB / 440.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.383e-05/0.2634, allocations: 7.938 kB / 440.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001176/0.2635, allocations: 4 kB / 440.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.435e-05/0.2636, allocations: 19.95 kB / 440.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.191e-05/0.2636, allocations: 4.125 kB / 440.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001112/0.2637, allocations: 135.5 kB / 440.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2637, allocations: 0 / 440.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005015/0.2642, allocations: 103.7 kB / 440.4 MB, free: 11.91 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.001118/0.2653, allocations: 0.9927 MB / 441.4 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006318/0.2659, allocations: 338.7 kB / 441.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.2659, allocations: 0 / 441.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003481/0.2663, allocations: 246.9 kB / 442 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.2666, allocations: 26.44 kB / 442 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003354/0.27, allocations: 2.521 MB / 444.5 MB, free: 7.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001602/0.2701, allocations: 150.4 kB / 444.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.917e-05/0.2702, allocations: 25.94 kB / 444.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.2704, allocations: 75.41 kB / 444.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2704, allocations: 0 / 444.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03681/0.3072, allocations: 5.64 MB / 450.4 MB, free: 1.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/11.89, allocations: 15.3 kB / 450.4 MB, free: 1.852 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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.csv","/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] "Error: Could not read variable leakageWithCoefficient.port_p.reference.gamma in file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv. Warning: Get data of variable leakageWithCoefficient.port_p.reference.gamma from file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.314086391590536]