Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 105.2 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002068/0.002068, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.195/0.195, allocations: 44.19 MB / 336.6 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 69.17 kB / 408.5 MB, free: 27.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1356, allocations: 60.81 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.004008/0.1396, allocations: 2.44 MB / 471.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.1409, allocations: 0.7673 MB / 472.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.141, allocations: 4 kB / 472.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.1412, allocations: 59.5 kB / 472.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002251/0.1415, allocations: 103.2 kB / 472.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002325/0.1417, allocations: 95.8 kB / 472.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002941/0.142, allocations: 346.7 kB / 473.2 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.1422, allocations: 92.53 kB / 473.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001886/0.1424, allocations: 135.6 kB / 473.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.1426, allocations: 159.3 kB / 473.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.88e-05/0.1426, allocations: 28 kB / 473.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.174e-05/0.1427, allocations: 32 kB / 473.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.186e-05/0.1428, allocations: 63.75 kB / 473.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000145/0.1429, allocations: 151.2 kB / 473.8 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002976/0.1432, allocations: 355 kB / 474.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1432, allocations: 3.938 kB / 474.2 MB, free: 9.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1432, allocations: 0 / 474.2 MB, free: 9.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.1432, allocations: 0 / 474.2 MB, free: 9.422 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001036/0.1443, allocations: 0.6158 MB / 474.8 MB, free: 8.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1443, allocations: 12.03 kB / 474.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.962e-05/0.1444, allocations: 66.72 kB / 474.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.848e-05/0.1445, allocations: 32.56 kB / 474.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002586/0.1448, allocations: 255.7 kB / 475.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.1448, allocations: 16.94 kB / 475.1 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.828e-05/0.1448, allocations: 24.38 kB / 475.2 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004651/0.1453, allocations: 248.9 kB / 475.4 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1453, allocations: 11.92 kB / 475.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/0.1453, allocations: 12 kB / 475.4 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.1454, allocations: 8 kB / 475.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004704/0.1458, allocations: 226.1 kB / 475.7 MB, free: 7.809 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.1471, allocations: 0.8752 MB / 476.5 MB, free: 6.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005179/0.1477, allocations: 310.7 kB / 476.8 MB, free: 6.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/0.1479, allocations: 136.8 kB / 477 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.148, allocations: 7.984 kB / 477 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.62e-05/0.148, allocations: 38.56 kB / 477 MB, free: 6.367 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.833e-06/0.148, allocations: 0 / 477 MB, free: 6.367 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.004599/0.1526, allocations: 1.258 MB / 478.3 MB, free: 5.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.297e-05/0.1527, allocations: 51.41 kB / 478.3 MB, free: 4.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002059/0.1529, allocations: 217 kB / 478.5 MB, free: 4.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.373e-05/0.1529, allocations: 29.7 kB / 478.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.153, allocations: 161.1 kB / 478.7 MB, free: 4.539 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.649e-05/0.1531, allocations: 110.4 kB / 478.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.839e-05/0.1532, allocations: 53.7 kB / 478.9 MB, free: 4.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.1534, allocations: 334.8 kB / 479.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/0.1536, allocations: 91.95 kB / 479.3 MB, free: 3.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.1538, allocations: 117.9 kB / 479.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004616/0.1543, allocations: 239.2 kB / 479.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1543, allocations: 0 / 479.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001743/0.1561, allocations: 0.5372 MB / 480.2 MB, free: 3.027 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.1561, allocations: 4 kB / 480.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1561, allocations: 4 kB / 480.2 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001649/0.1578, allocations: 307.2 kB / 480.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001702/0.1579, allocations: 31.97 kB / 480.5 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007548/0.1655, allocations: 6.842 MB / 487.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002617/0.1658, allocations: 23.78 kB / 487.4 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/0.1658, allocations: 15.92 kB / 487.4 MB, free: 11.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,5), (1,5), (1,5), (1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0001959/0.166, allocations: 145.8 kB / 487.6 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.282e-05/0.1661, allocations: 23.72 kB / 487.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001772/0.1679, allocations: 0.5473 MB / 488.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.1679, allocations: 4 kB / 488.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1679, allocations: 3.938 kB / 488.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1679, allocations: 3.984 kB / 488.1 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004082/0.1683, allocations: 357.2 kB / 488.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.1683, allocations: 0 / 488.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001479/0.1685, allocations: 20.16 kB / 488.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001556/0.1701, allocations: 319.1 kB / 488.8 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.36e-05/0.1701, allocations: 8 kB / 488.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008202/0.1783, allocations: 6.885 MB / 495.7 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.1783, allocations: 0 / 495.7 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.1802, allocations: 0.6156 MB / 496.3 MB, free: 1.637 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.567e-05/0.1803, allocations: 116.6 kB / 496.4 MB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.1803, allocations: 8 kB / 496.4 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.1806, allocations: 8 kB / 496.5 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001399/0.1807, allocations: 27.95 kB / 496.5 MB, free: 1.461 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.839e-05/0.1807, allocations: 12 kB / 496.5 MB, free: 1.449 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.1809, allocations: 164.4 kB / 496.7 MB, free: 1.293 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1809, allocations: 0 / 496.7 MB, free: 1.293 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005503/0.1815, allocations: 115.8 kB / 496.8 MB, free: 1.18 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (11): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,4), (2,4), (2,4), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002173/0.1836, allocations: 1.16 MB / 497.9 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001338/0.185, allocations: 0.7567 MB / 498.7 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.185, allocations: 0 / 498.7 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001373/0.1864, allocations: 0.7368 MB / 499.4 MB, free: 14.38 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.1868, allocations: 35.36 kB / 499.5 MB, free: 14.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006478/0.1933, allocations: 3.084 MB / 0.4908 GB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004283/0.1937, allocations: 0.7678 MB / 0.4915 GB, free: 10.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.106e-05/0.1938, allocations: 5.969 kB / 0.4915 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.1939, allocations: 79.41 kB / 0.4916 GB, free: 10.27 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1939, allocations: 0 / 0.4916 GB, free: 10.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2324/0.4264, allocations: 10.6 MB / 0.5019 GB, free: 51.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.96, allocations: 8.109 kB / 0.502 GB, free: 51.1 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.001 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/FixedShape/FixedShape.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches