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.0008869/0.0008869, allocations: 94.95 kB / 17.35 MB, free: 6.375 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.001042/0.001043, allocations: 176.8 kB / 18.25 MB, free: 5.523 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.288/1.288, allocations: 223.3 MB / 242.3 MB, free: 14.5 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.1825/0.1825, allocations: 44.25 MB / 337.7 MB, free: 2.441 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000376/0.0003761, allocations: 8 kB / 410.4 MB, free: 27.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.115, allocations: 61.92 MB / 472.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.002608/0.1176, allocations: 2.127 MB / 474.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.1188, allocations: 0.7402 MB / 475.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.119, allocations: 4 kB / 475.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.1192, allocations: 47.69 kB / 475.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002576/0.1195, allocations: 87.44 kB / 475.4 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002589/0.1197, allocations: 87.84 kB / 475.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003325/0.1201, allocations: 326.8 kB / 475.8 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001838/0.1203, allocations: 84.97 kB / 475.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002289/0.1205, allocations: 119.5 kB / 476 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.1207, allocations: 139.3 kB / 476.1 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.886e-05/0.1207, allocations: 12 kB / 476.1 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.978e-05/0.1208, allocations: 16 kB / 476.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.855e-05/0.1208, allocations: 55.75 kB / 476.2 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001344/0.121, allocations: 153 kB / 476.3 MB, free: 9.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.1213, allocations: 342.9 kB / 476.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1213, allocations: 0 / 476.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1213, allocations: 0 / 476.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.1213, allocations: 0 / 476.7 MB, free: 8.883 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.0009651/0.1223, allocations: 0.5691 MB / 477.2 MB, free: 8.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.1223, allocations: 12.03 kB / 477.3 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8e-05/0.1224, allocations: 58.72 kB / 477.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.845e-05/0.1225, allocations: 28.56 kB / 477.3 MB, free: 8.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.1228, allocations: 271.5 kB / 477.6 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.1228, allocations: 20.94 kB / 477.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.856e-05/0.1229, allocations: 24.38 kB / 477.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005228/0.1234, allocations: 257 kB / 477.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1234, allocations: 0 / 477.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.795e-05/0.1235, allocations: 8 kB / 477.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.1235, allocations: 8 kB / 477.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005093/0.124, allocations: 242.1 kB / 478.2 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001328/0.1253, allocations: 0.8831 MB / 479 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005105/0.1259, allocations: 305 kB / 479.3 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000283/0.1261, allocations: 153.3 kB / 479.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.391e-05/0.1262, allocations: 7.969 kB / 479.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.1262, allocations: 42.5 kB / 479.5 MB, free: 5.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/0.1262, allocations: 3.938 kB / 479.5 MB, free: 5.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.004397/0.1306, allocations: 1.27 MB / 480.8 MB, free: 4.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.1307, allocations: 55.41 kB / 480.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.1309, allocations: 217 kB / 481.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.253e-05/0.1309, allocations: 33.7 kB / 481.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.132e-05/0.131, allocations: 161.1 kB / 481.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.497e-05/0.1311, allocations: 110.4 kB / 481.4 MB, free: 3.879 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.354e-05/0.1312, allocations: 29.7 kB / 481.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.1313, allocations: 334.8 kB / 481.7 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002283/0.1315, allocations: 95.95 kB / 481.8 MB, free: 3.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002336/0.1317, allocations: 129.9 kB / 481.9 MB, free: 3.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004637/0.1322, allocations: 239.3 kB / 482.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1322, allocations: 0 / 482.2 MB, free: 3.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001696/0.1339, allocations: 0.5605 MB / 482.7 MB, free: 2.461 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.1339, allocations: 4 kB / 482.7 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.134, allocations: 0 / 482.7 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001567/0.1355, allocations: 319.1 kB / 483.1 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.1357, allocations: 27.97 kB / 483.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006486/0.1422, allocations: 6.332 MB / 489.4 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002055/0.1424, allocations: 27.73 kB / 489.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.1425, allocations: 16.02 kB / 489.5 MB, free: 11.19 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.0001535/0.1426, allocations: 149.8 kB / 489.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.21e-05/0.1427, allocations: 23.72 kB / 489.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/0.1444, allocations: 0.5502 MB / 490.2 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.1444, allocations: 11.92 kB / 490.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.1444, allocations: 0 / 490.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1444, allocations: 3.938 kB / 490.2 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003758/0.1448, allocations: 365.1 kB / 490.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.1448, allocations: 0 / 490.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.145, allocations: 27.98 kB / 490.6 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001446/0.1464, allocations: 311.2 kB / 490.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.1464, allocations: 4 kB / 490.9 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006317/0.1528, allocations: 6.377 MB / 497.3 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1528, allocations: 0 / 497.3 MB, free: 2.766 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001682/0.1545, allocations: 0.6283 MB / 497.9 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.823e-05/0.1545, allocations: 100.8 kB / 498 MB, free: 1.992 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.736e-05/0.1546, allocations: 11.92 kB / 498 MB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.1548, allocations: 16 kB / 498 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.577e-05/0.1549, allocations: 35.94 kB / 498.1 MB, free: 1.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.1549, allocations: 8 kB / 498.1 MB, free: 1.922 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.155, allocations: 160.5 kB / 498.2 MB, free: 1.766 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.155, allocations: 0 / 498.2 MB, free: 1.766 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004748/0.1555, allocations: 119.8 kB / 498.3 MB, free: 1.648 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.002017/0.1576, allocations: 1.172 MB / 499.5 MB, free: 444 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001058/0.1586, allocations: 0.7445 MB / 0.4885 GB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1586, allocations: 0 / 0.4885 GB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.1598, allocations: 0.7334 MB / 0.4892 GB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.1601, allocations: 22.88 kB / 0.4893 GB, free: 14.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005838/0.166, allocations: 3.229 MB / 0.4924 GB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.1664, allocations: 0.7755 MB / 0.4932 GB, free: 10.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.093e-05/0.1665, allocations: 9.969 kB / 0.4932 GB, free: 10.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.1666, allocations: 79.34 kB / 0.4933 GB, free: 10.59 MB / 382.1 MB Notification: Performance of SimCode: time 8.02e-07/0.1666, allocations: 0 / 0.4933 GB, free: 10.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02265/0.1893, allocations: 9.808 MB / 0.5028 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002115/0.1895, allocations: 236.5 kB / 0.5031 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.199/2.388, allocations: 0 / 0.5031 GB, free: 0.7344 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_FixedShape_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 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.mat","/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