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.001187/0.001187, allocations: 79.7 kB / 20.67 MB, free: 3.883 MB / 18.57 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.001214/0.001214, allocations: 170 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.9055/0.9055, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 2.554e-06/2.554e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.608e-05/1.863e-05, allocations: 6.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage): time 0.002697/0.002715, allocations: 2.674 MB / 327.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.004067, allocations: 1.145 MB / 328.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.004183, allocations: 8 kB / 328.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008572/0.00504, allocations: 0.6054 MB / 329 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003061/0.005346, allocations: 142.9 kB / 329.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008318/0.006178, allocations: 0.6107 MB / 329.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003205/0.006498, allocations: 314.4 kB / 330.1 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000325/0.006823, allocations: 231.1 kB / 330.3 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004368/0.00726, allocations: 195.5 kB / 330.5 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001323/0.007392, allocations: 131.7 kB / 330.6 MB, free: 9.883 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.793e-05/0.00742, allocations: 24 kB / 330.6 MB, free: 9.859 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002478/0.007668, allocations: 179.7 kB / 330.8 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.213e-05/0.0077, allocations: 59.75 kB / 330.9 MB, free: 9.625 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.529e-05/0.007766, allocations: 99.75 kB / 331 MB, free: 9.527 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004193/0.008185, allocations: 0.514 MB / 331.5 MB, free: 9.012 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.008188, allocations: 4 kB / 331.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.00819, allocations: 0 / 331.5 MB, free: 9.008 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.008195, allocations: 0 / 331.5 MB, free: 9.008 MB / 298.7 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.0009758/0.00917, allocations: 0.6573 MB / 332.1 MB, free: 8.316 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.248e-05/0.009203, allocations: 8.031 kB / 332.1 MB, free: 8.309 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.971e-05/0.009253, allocations: 70.72 kB / 332.2 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004015/0.009654, allocations: 116.6 kB / 332.3 MB, free: 8.117 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002403/0.009894, allocations: 202 kB / 332.5 MB, free: 7.895 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.264e-05/0.009917, allocations: 40.94 kB / 332.6 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.1e-05/0.009958, allocations: 32.38 kB / 332.6 MB, free: 7.824 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003387/0.0103, allocations: 337.5 kB / 332.9 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.01031, allocations: 3.938 kB / 332.9 MB, free: 7.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.029e-05/0.01033, allocations: 12 kB / 332.9 MB, free: 7.469 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-06/0.01034, allocations: 8 kB / 332.9 MB, free: 7.461 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000272/0.01061, allocations: 242.5 kB / 333.2 MB, free: 7.223 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.01175, allocations: 1.086 MB / 334.3 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000325/0.01208, allocations: 234.3 kB / 334.5 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.792e-05/0.01217, allocations: 94.23 kB / 334.6 MB, free: 5.734 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.425e-05/0.01226, allocations: 15.98 kB / 334.6 MB, free: 5.719 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.01228, allocations: 46.36 kB / 334.7 MB, free: 5.664 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.512e-06/0.01228, allocations: 0 / 334.7 MB, free: 5.664 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007088/0.01299, allocations: 420.6 kB / 335.1 MB, free: 5.246 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.515e-05/0.01301, allocations: 55.41 kB / 335.1 MB, free: 5.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.01312, allocations: 172.2 kB / 335.3 MB, free: 4.996 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.01313, allocations: 29.7 kB / 335.3 MB, free: 4.961 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.86e-05/0.0132, allocations: 180.3 kB / 335.5 MB, free: 4.781 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.019e-05/0.01324, allocations: 87.27 kB / 335.6 MB, free: 4.695 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.529e-05/0.0133, allocations: 57.94 kB / 335.6 MB, free: 4.633 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.79e-05/0.01338, allocations: 326.8 kB / 335.9 MB, free: 4.305 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.749e-05/0.01345, allocations: 72.47 kB / 336 MB, free: 4.234 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001028/0.01356, allocations: 133 kB / 336.2 MB, free: 4.082 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001957/0.01375, allocations: 221.1 kB / 336.4 MB, free: 3.844 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.01375, allocations: 0 / 336.4 MB, free: 3.844 MB / 298.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003602/0.01411, allocations: 323.9 kB / 336.7 MB, free: 3.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.01413, allocations: 8 kB / 336.7 MB, free: 3.512 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.01413, allocations: 0 / 336.7 MB, free: 3.512 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001945/0.01433, allocations: 80.75 kB / 336.8 MB, free: 3.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.047e-05/0.01442, allocations: 43.91 kB / 336.8 MB, free: 3.387 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001506/0.01592, allocations: 1.918 MB / 338.7 MB, free: 1.352 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.947e-05/0.01599, allocations: 23.78 kB / 338.8 MB, free: 1.328 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.01601, allocations: 16 kB / 338.8 MB, free: 1.312 MB / 298.7 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.0001033/0.01611, allocations: 148.8 kB / 338.9 MB, free: 1.156 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.548e-05/0.01613, allocations: 15.91 kB / 338.9 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003385/0.01647, allocations: 284.1 kB / 339.2 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.01647, allocations: 0 / 339.2 MB, free: 0.8594 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.01648, allocations: 4 kB / 339.2 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.01648, allocations: 3.984 kB / 339.2 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000598/0.01708, allocations: 0.6413 MB / 339.9 MB, free: 160 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.01708, allocations: 0 / 339.9 MB, free: 160 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.112e-05/0.01714, allocations: 27.92 kB / 339.9 MB, free: 132 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001323/0.01727, allocations: 72.81 kB / 340 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.01729, allocations: 11.98 kB / 340 MB, free: 44 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001145/0.01843, allocations: 1.907 MB / 341.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01843, allocations: 0 / 341.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004031/0.01884, allocations: 444.5 kB / 342.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.379e-05/0.01888, allocations: 35.86 kB / 342.3 MB, free: 13.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.01889, allocations: 12.12 kB / 342.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.918e-05/0.01895, allocations: 0 / 342.4 MB, free: 13.52 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.015e-05/0.01898, allocations: 23.95 kB / 342.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.01899, allocations: 4 kB / 342.4 MB, free: 13.5 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.489e-05/0.01906, allocations: 131.5 kB / 342.5 MB, free: 13.37 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.01906, allocations: 0 / 342.5 MB, free: 13.37 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003021/0.01936, allocations: 99.78 kB / 342.6 MB, free: 13.27 MB / 314.7 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.0007007/0.02006, allocations: 1.001 MB / 343.6 MB, free: 12.24 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004034/0.02046, allocations: 342.7 kB / 343.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.02046, allocations: 4.062 kB / 343.9 MB, free: 11.89 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001794/0.02064, allocations: 242.4 kB / 344.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002413/0.02089, allocations: 30.89 kB / 344.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.02308, allocations: 2.47 MB / 346.7 MB, free: 9.004 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.139e-05/0.02317, allocations: 142.5 kB / 346.8 MB, free: 8.844 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.812e-05/0.02323, allocations: 21.95 kB / 346.8 MB, free: 8.824 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.429e-05/0.0233, allocations: 76.47 kB / 346.9 MB, free: 8.75 MB / 314.7 MB Notification: Performance of SimCode: time 5.11e-07/0.0233, allocations: 0 / 346.9 MB, free: 8.75 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02141/0.04472, allocations: 5.902 MB / 352.8 MB, free: 2.984 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.298/7.342, allocations: 17.48 kB / 352.8 MB, free: 2.973 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/Leakage/GeneralLeakage/GeneralLeakage.csv","/var/lib/jenkins/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: 9.059189206920564]