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.001461/0.001462, allocations: 105.8 kB / 17.2 MB, free: 6.289 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.001563/0.001563, allocations: 194 kB / 18.12 MB, free: 5.383 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.332/1.332, allocations: 222.9 MB / 241.8 MB, free: 15.43 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.2016/0.2016, allocations: 44.18 MB / 336.1 MB, free: 2.977 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 64.91 kB / 407.8 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1114, allocations: 60.82 MB / 468.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.FixedShape): time 0.003677/0.1152, allocations: 2.489 MB / 471.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.1164, allocations: 0.7596 MB / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001682/0.1166, allocations: 0 / 471.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002259/0.1168, allocations: 51.69 kB / 471.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002468/0.1171, allocations: 87.44 kB / 472 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002553/0.1174, allocations: 79.86 kB / 472.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003457/0.1177, allocations: 330.7 kB / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.1179, allocations: 96.97 kB / 472.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002052/0.1181, allocations: 119.5 kB / 472.6 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001837/0.1183, allocations: 147.3 kB / 472.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.667e-05/0.1184, allocations: 19.94 kB / 472.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.911e-05/0.1184, allocations: 20 kB / 472.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.457e-05/0.1185, allocations: 55.75 kB / 472.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.1186, allocations: 135.3 kB / 473 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002795/0.1189, allocations: 355 kB / 473.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1189, allocations: 0 / 473.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.1189, allocations: 4 kB / 473.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.1189, allocations: 0 / 473.4 MB, free: 9.988 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.001047/0.12, allocations: 0.608 MB / 474 MB, free: 9.332 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.12, allocations: 8.031 kB / 474 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.434e-05/0.1201, allocations: 62.72 kB / 474 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.1202, allocations: 32.56 kB / 474.1 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002539/0.1204, allocations: 259.7 kB / 474.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.1205, allocations: 20.94 kB / 474.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.986e-05/0.1205, allocations: 28.31 kB / 474.4 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.121, allocations: 249 kB / 474.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.121, allocations: 0 / 474.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.742e-05/0.1211, allocations: 12 kB / 474.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.1211, allocations: 4 kB / 474.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004997/0.1216, allocations: 230.1 kB / 474.8 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/0.1229, allocations: 0.8752 MB / 475.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005116/0.1235, allocations: 302.7 kB / 476 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000259/0.1237, allocations: 145.3 kB / 476.2 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.1238, allocations: 11.97 kB / 476.2 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.231e-05/0.1238, allocations: 34.56 kB / 476.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.815e-06/0.1238, allocations: 7.984 kB / 476.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.004536/0.1284, allocations: 1.254 MB / 477.5 MB, free: 5.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.019e-05/0.1284, allocations: 55.41 kB / 477.5 MB, free: 5.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.1286, allocations: 213 kB / 477.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.1286, allocations: 29.7 kB / 477.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.387e-05/0.1287, allocations: 169.1 kB / 477.9 MB, free: 5.109 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.083e-05/0.1288, allocations: 106.4 kB / 478 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.914e-05/0.1289, allocations: 53.7 kB / 478.1 MB, free: 4.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001032/0.129, allocations: 330.8 kB / 478.4 MB, free: 4.613 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002148/0.1292, allocations: 91.95 kB / 478.5 MB, free: 4.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.1295, allocations: 129.9 kB / 478.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004341/0.1299, allocations: 231.2 kB / 478.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.1299, allocations: 0 / 478.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001739/0.1317, allocations: 0.5449 MB / 479.4 MB, free: 3.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.1317, allocations: 4 kB / 479.4 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.1317, allocations: 0 / 479.4 MB, free: 3.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001662/0.1334, allocations: 311.1 kB / 479.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.1336, allocations: 31.91 kB / 479.7 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006578/0.1402, allocations: 6.318 MB / 486 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002086/0.1404, allocations: 27.69 kB / 486.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.1404, allocations: 7.938 kB / 486.1 MB, free: 12.35 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.0001414/0.1406, allocations: 149.8 kB / 486.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.988e-05/0.1406, allocations: 23.97 kB / 486.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001737/0.1424, allocations: 0.5502 MB / 486.8 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1424, allocations: 7.938 kB / 486.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1424, allocations: 4 kB / 486.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.698e-06/0.1424, allocations: 3.984 kB / 486.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003713/0.1428, allocations: 357.2 kB / 487.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/0.1428, allocations: 0 / 487.2 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.1429, allocations: 23.97 kB / 487.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/0.1444, allocations: 315.1 kB / 487.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.329e-05/0.1445, allocations: 4 kB / 487.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006684/0.1512, allocations: 6.373 MB / 493.9 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1512, allocations: 0 / 493.9 MB, free: 3.934 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001683/0.1529, allocations: 0.6282 MB / 494.5 MB, free: 3.277 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.521e-05/0.1529, allocations: 100.8 kB / 494.6 MB, free: 3.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.124e-05/0.153, allocations: 8 kB / 494.6 MB, free: 3.152 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.1532, allocations: 11.98 kB / 494.6 MB, free: 3.141 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.575e-05/0.1533, allocations: 27.95 kB / 494.6 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.1533, allocations: 16 kB / 494.7 MB, free: 3.098 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.1534, allocations: 156.5 kB / 494.8 MB, free: 2.945 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1534, allocations: 0 / 494.8 MB, free: 2.945 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004743/0.1539, allocations: 119.8 kB / 494.9 MB, free: 2.828 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.001919/0.1558, allocations: 1.157 MB / 496.1 MB, free: 1.629 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009361/0.1568, allocations: 0.7367 MB / 496.8 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1568, allocations: 0 / 496.8 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.1579, allocations: 0.7334 MB / 497.6 MB, free: 56 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.1582, allocations: 20.44 kB / 497.6 MB, free: 36 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005582/0.1638, allocations: 3.183 MB / 0.489 GB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.1642, allocations: 0.7755 MB / 0.4898 GB, free: 11.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.529e-05/0.1642, allocations: 5.969 kB / 0.4898 GB, free: 11.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.127e-05/0.1643, allocations: 83.34 kB / 0.4899 GB, free: 11.85 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1643, allocations: 0 / 0.4899 GB, free: 11.85 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06042/0.2248, allocations: 9.968 MB / 0.4996 GB, free: 2.059 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/0.225, allocations: 248.2 kB / 0.4998 GB, free: 1.793 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.251/2.476, allocations: 4 kB / 0.4998 GB, free: 1.789 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