Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.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.001831/0.001831, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002071/0.002071, allocations: 213.9 kB / 23.73 MB, free: 4.164 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.466/1.466, allocations: 230.5 MB / 257.4 MB, free: 7.805 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.FixedShapes.CuboidSections,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001923/0.001923, allocations: 67.89 kB / 377.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2502, allocations: 53.42 MB / 431.2 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections): time 0.006047/0.2563, allocations: 3.926 MB / 435.1 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002935/0.2592, allocations: 1.619 MB / 436.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002464/0.2595, allocations: 12 kB / 436.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002475/0.2619, allocations: 0.9483 MB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006831/0.2626, allocations: 262.1 kB / 437.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001683/0.2643, allocations: 0.7279 MB / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007547/0.2651, allocations: 0.6338 MB / 439.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007452/0.2658, allocations: 459.1 kB / 439.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004062/0.2662, allocations: 290.9 kB / 440 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004126/0.2666, allocations: 310.5 kB / 440.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.268e-05/0.2667, allocations: 56 kB / 440.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005417/0.2673, allocations: 271.7 kB / 440.6 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.2674, allocations: 147.5 kB / 440.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002605/0.2676, allocations: 262.7 kB / 441 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00119/0.2688, allocations: 0.9845 MB / 442 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2688, allocations: 4 kB / 442 MB, free: 11.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2688, allocations: 0 / 442 MB, free: 11.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.218e-05/0.2689, allocations: 0 / 442 MB, free: 11.55 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.003686/0.2725, allocations: 1.215 MB / 443.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.2726, allocations: 11.98 kB / 443.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001402/0.2727, allocations: 122.8 kB / 443.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001334/0.2741, allocations: 192.4 kB / 443.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.2743, allocations: 185.7 kB / 443.7 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.736e-05/0.2743, allocations: 58.38 kB / 443.8 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.2745, allocations: 72.38 kB / 443.9 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.2759, allocations: 0.7912 MB / 444.7 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.2759, allocations: 11.95 kB / 444.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.624e-05/0.276, allocations: 28 kB / 444.7 MB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.999e-05/0.276, allocations: 23.94 kB / 444.7 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/0.2774, allocations: 0.6649 MB / 445.4 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004101/0.2815, allocations: 2.28 MB / 447.7 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001892/0.2834, allocations: 0.8091 MB / 448.5 MB, free: 4.887 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006266/0.284, allocations: 302.7 kB / 448.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001014/0.2841, allocations: 32.84 kB / 448.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.777e-05/0.2841, allocations: 43.44 kB / 448.8 MB, free: 4.508 MB / 350.1 MB Notification: Performance of pre-optimization done (n=72): time 2.315e-06/0.2841, allocations: 3.938 kB / 448.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.002631/0.2868, allocations: 0.9872 MB / 449.8 MB, free: 3.504 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.762e-05/0.2869, allocations: 111.5 kB / 449.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003286/0.2872, allocations: 281.6 kB / 450.2 MB, free: 3.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.969e-05/0.2872, allocations: 41.7 kB / 450.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/0.2875, allocations: 304.3 kB / 450.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/0.2877, allocations: 257.8 kB / 450.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002184/0.2879, allocations: 138.6 kB / 450.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001818/0.2881, allocations: 354.7 kB / 451.3 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005076/0.2886, allocations: 233.9 kB / 451.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006816/0.2893, allocations: 408 kB / 451.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/0.2905, allocations: 0.6376 MB / 452.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.2905, allocations: 4 kB / 452.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001671/0.2921, allocations: 0.8307 MB / 453.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.2922, allocations: 4 kB / 453.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.2922, allocations: 8 kB / 453.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003964/0.2926, allocations: 129.7 kB / 453.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006299/0.2932, allocations: 155.8 kB / 453.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003695/0.2969, allocations: 3.566 MB / 457.2 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005239/0.2974, allocations: 83.44 kB / 457.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.586e-05/0.2975, allocations: 35.98 kB / 457.4 MB, free: 11.56 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (86): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,7,100.0%), (1,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002764/0.2978, allocations: 193.8 kB / 457.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.2979, allocations: 43.72 kB / 457.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001595/0.2995, allocations: 0.7414 MB / 458.3 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.2995, allocations: 4 kB / 458.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.2995, allocations: 4 kB / 458.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.2995, allocations: 11.86 kB / 458.4 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002587/0.3021, allocations: 1.379 MB / 459.7 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.3021, allocations: 0 / 459.7 MB, free: 9.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000516/0.3026, allocations: 111.9 kB / 459.8 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003021/0.3029, allocations: 109.6 kB / 460 MB, free: 8.887 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.523e-05/0.3029, allocations: 23.98 kB / 460 MB, free: 8.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003077/0.306, allocations: 3.119 MB / 463.1 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.306, allocations: 0 / 463.1 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.3081, allocations: 1.121 MB / 464.2 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.136e-05/0.3082, allocations: 51.61 kB / 464.3 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.909e-05/0.3083, allocations: 15.94 kB / 464.3 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003823/0.3086, allocations: 31.97 kB / 464.3 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/0.3088, allocations: 56.48 kB / 464.4 MB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.71e-05/0.3088, allocations: 20 kB / 464.4 MB, free: 4.195 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002198/0.309, allocations: 197.2 kB / 464.6 MB, free: 4 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.309, allocations: 0 / 464.6 MB, free: 4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007994/0.3098, allocations: 219.7 kB / 464.8 MB, free: 3.785 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (source.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 (60): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002509/0.3123, allocations: 1.712 MB / 466.5 MB, free: 2.043 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.314, allocations: 0.8523 MB / 467.4 MB, free: 1.168 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.314, allocations: 0 / 467.4 MB, free: 1.168 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008412/0.3148, allocations: 0.5367 MB / 467.9 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/0.3154, allocations: 47.86 kB / 467.9 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007663/0.323, allocations: 4.744 MB / 472.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.3233, allocations: 269.5 kB / 472.9 MB, free: 11.32 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003265/0.3237, allocations: 80.36 kB / 473 MB, free: 11.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.324, allocations: 203.3 kB / 473.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.324, allocations: 0 / 473.2 MB, free: 11.04 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04894/0.3729, allocations: 11.66 MB / 484.9 MB, free: 15.55 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.92/12.3, allocations: 7.797 kB / 484.9 MB, free: 15.54 MB / 398.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/FixedShapes/CuboidSections/CuboidSections.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable cuboidRight.port_p.reference.gamma in file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.csv. Warning: Get data of variable cuboidRight.port_p.reference.gamma from file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.755975088104606]