Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.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.0008145/0.0008145, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007925/0.0007925, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8448/0.8448, allocations: 173.4 MB / 200.5 MB, free: 9.441 MB / 186.7 MB " [Timeout remaining time 179] 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.FixedShapes.CuboidSections,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.864e-05/2.047e-05, allocations: 5.516 kB / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections): time 0.003551/0.003572, allocations: 3.908 MB / 322.3 MB, free: 2.434 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001755/0.005327, allocations: 1.557 MB / 323.9 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.005506, allocations: 12 kB / 323.9 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.006692, allocations: 0.9939 MB / 324.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003667/0.007058, allocations: 265.9 kB / 325.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008432/0.007902, allocations: 0.7537 MB / 325.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004205/0.008322, allocations: 0.6646 MB / 326.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004913/0.008813, allocations: 469.3 kB / 327 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003232/0.009137, allocations: 399.1 kB / 327.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002407/0.009377, allocations: 275.2 kB / 327.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.973e-05/0.009427, allocations: 56 kB / 327.8 MB, free: 13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003077/0.009735, allocations: 259.5 kB / 328 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.717e-05/0.009802, allocations: 143.4 kB / 328.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.009929, allocations: 223.4 kB / 328.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006499/0.01058, allocations: 0.9968 MB / 329.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.01058, allocations: 0 / 329.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01058, allocations: 3.938 kB / 329.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.01059, allocations: 0 / 329.4 MB, free: 11.38 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.001862/0.01245, allocations: 1.188 MB / 330.6 MB, free: 10.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.01249, allocations: 8.922 kB / 330.6 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.387e-05/0.01258, allocations: 122.8 kB / 330.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006623/0.01325, allocations: 212.3 kB / 330.9 MB, free: 9.816 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.01337, allocations: 184.8 kB / 331.1 MB, free: 9.609 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.364e-05/0.0134, allocations: 54.38 kB / 331.1 MB, free: 9.559 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.285e-05/0.01347, allocations: 72.38 kB / 331.2 MB, free: 9.488 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008212/0.01429, allocations: 0.7955 MB / 332 MB, free: 8.668 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.01431, allocations: 4.188 kB / 332 MB, free: 8.664 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.076e-05/0.01435, allocations: 32.12 kB / 332 MB, free: 8.633 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.01436, allocations: 20 kB / 332 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008041/0.01517, allocations: 0.661 MB / 332.7 MB, free: 7.953 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003131/0.0183, allocations: 2.262 MB / 335 MB, free: 5.578 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001588/0.01989, allocations: 0.8327 MB / 335.8 MB, free: 4.742 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005599/0.02045, allocations: 295.7 kB / 336.1 MB, free: 4.449 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.817e-05/0.02051, allocations: 20.64 kB / 336.1 MB, free: 4.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.987e-05/0.02054, allocations: 47.22 kB / 336.2 MB, free: 4.375 MB / 298.7 MB Notification: Performance of pre-optimization done (n=72): time 2.394e-06/0.02055, allocations: 0 / 336.2 MB, free: 4.375 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.002212/0.02276, allocations: 0.9796 MB / 337.1 MB, free: 3.383 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.957e-05/0.02282, allocations: 115.5 kB / 337.3 MB, free: 3.246 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002703/0.02309, allocations: 285.6 kB / 337.5 MB, free: 2.961 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/0.02313, allocations: 41.64 kB / 337.6 MB, free: 2.914 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.02329, allocations: 296.4 kB / 337.9 MB, free: 2.621 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001712/0.02346, allocations: 261.8 kB / 338.1 MB, free: 2.363 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.02365, allocations: 134.6 kB / 338.2 MB, free: 2.223 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.02377, allocations: 350.7 kB / 338.6 MB, free: 1.871 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004676/0.02424, allocations: 229.9 kB / 338.8 MB, free: 1.648 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005686/0.02481, allocations: 419.9 kB / 339.2 MB, free: 1.176 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.02585, allocations: 0.6259 MB / 339.9 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.76e-06/0.02585, allocations: 4 kB / 339.9 MB, free: 500 kB / 298.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.0014/0.02726, allocations: 0.8425 MB / 340.7 MB, free: 15.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.02727, allocations: 8 kB / 340.7 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.02728, allocations: 4 kB / 340.7 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000242/0.02752, allocations: 121.7 kB / 340.8 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003326/0.02785, allocations: 159.7 kB / 341 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001978/0.02983, allocations: 3.548 MB / 344.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.03007, allocations: 87.44 kB / 344.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.819e-05/0.03011, allocations: 35.98 kB / 344.7 MB, free: 11.45 MB / 314.7 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.0001655/0.03027, allocations: 205.7 kB / 344.9 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.5e-05/0.03033, allocations: 43.72 kB / 344.9 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000899/0.03122, allocations: 0.7375 MB / 345.6 MB, free: 10.44 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.03123, allocations: 11.98 kB / 345.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.03124, allocations: 4 kB / 345.7 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.03124, allocations: 224 / 345.7 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001449/0.03269, allocations: 1.375 MB / 347 MB, free: 8.988 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.03269, allocations: 3.938 kB / 347 MB, free: 8.984 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002487/0.03294, allocations: 119.8 kB / 347.1 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001673/0.03311, allocations: 113.6 kB / 347.3 MB, free: 8.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.03313, allocations: 15.98 kB / 347.3 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001583/0.03472, allocations: 3.115 MB / 350.4 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.03472, allocations: 0 / 350.4 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.03586, allocations: 1.117 MB / 351.5 MB, free: 4.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.946e-05/0.0359, allocations: 59.5 kB / 351.6 MB, free: 4.191 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.03594, allocations: 12 kB / 351.6 MB, free: 4.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001863/0.03612, allocations: 32.03 kB / 351.6 MB, free: 4.148 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.703e-05/0.0362, allocations: 56.55 kB / 351.7 MB, free: 4.094 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.03622, allocations: 16 kB / 351.7 MB, free: 4.078 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001183/0.03634, allocations: 197.2 kB / 351.9 MB, free: 3.887 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03634, allocations: 0 / 351.9 MB, free: 3.887 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004346/0.03677, allocations: 211.6 kB / 352.1 MB, free: 3.68 MB / 314.7 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.001435/0.03821, allocations: 1.715 MB / 353.8 MB, free: 1.934 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009013/0.03911, allocations: 0.8523 MB / 354.6 MB, free: 1.059 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.03911, allocations: 0 / 354.6 MB, free: 1.059 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004311/0.03954, allocations: 0.5446 MB / 355.2 MB, free: 496 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.03985, allocations: 40.44 kB / 355.2 MB, free: 456 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004322/0.04417, allocations: 4.737 MB / 360 MB, free: 11.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/0.04433, allocations: 261.5 kB / 360.2 MB, free: 11.22 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002036/0.04453, allocations: 84.36 kB / 360.3 MB, free: 11.14 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.04472, allocations: 204.4 kB / 360.5 MB, free: 10.94 MB / 330.7 MB Notification: Performance of SimCode: time 4.01e-07/0.04472, allocations: 0 / 360.5 MB, free: 10.94 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02579/0.07051, allocations: 11.63 MB / 372.1 MB, free: 15.52 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.273/7.344, allocations: 3.938 kB / 372.1 MB, free: 15.51 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/FixedShapes/CuboidSections/CuboidSections.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.939609637483954]