Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001674/0.001674, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001923/0.001924, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2416/0.2416, allocations: 46.11 MB / 343.6 MB, free: 11.83 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 78.73 kB / 416.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1179, allocations: 62.45 MB / 479.4 MB, free: 5.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.FluxTubes.Shapes.Force): time 0.004135/0.1221, allocations: 3.05 MB / 482.4 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.1237, allocations: 0.7715 MB / 483.2 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003288/0.1241, allocations: 8 kB / 483.2 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002574/0.1244, allocations: 43.62 kB / 483.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003599/0.1248, allocations: 83.31 kB / 483.3 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.1251, allocations: 103.9 kB / 483.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005841/0.1257, allocations: 438.7 kB / 483.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002929/0.126, allocations: 148.4 kB / 484 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003255/0.1264, allocations: 167.3 kB / 484.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002613/0.1266, allocations: 203 kB / 484.4 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.444e-05/0.1267, allocations: 28 kB / 484.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.971e-05/0.1268, allocations: 32 kB / 484.4 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.732e-05/0.1269, allocations: 75.73 kB / 484.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001857/0.1271, allocations: 194.9 kB / 484.7 MB, free: 324 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004182/0.1275, allocations: 442.4 kB / 485.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1275, allocations: 7.938 kB / 485.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1275, allocations: 0 / 485.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.653e-05/0.1276, allocations: 0 / 485.1 MB, free: 15.87 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001577/0.1291, allocations: 0.7058 MB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.1292, allocations: 12.88 kB / 485.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.469e-05/0.1293, allocations: 78.7 kB / 485.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002763/0.1296, allocations: 52.45 kB / 486 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.13, allocations: 283.5 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.13, allocations: 29.38 kB / 486.3 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.302e-05/0.1301, allocations: 36.38 kB / 486.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006628/0.1307, allocations: 354.5 kB / 486.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.1308, allocations: 0 / 486.7 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.1308, allocations: 16 kB / 486.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.437e-05/0.1308, allocations: 11.98 kB / 486.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006277/0.1315, allocations: 299.8 kB / 487 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/0.1337, allocations: 1.337 MB / 488.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.1343, allocations: 288.8 kB / 488.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003049/0.1346, allocations: 153.4 kB / 488.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.5e-05/0.1346, allocations: 4.281 kB / 488.8 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.1347, allocations: 38.83 kB / 488.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.472e-06/0.1347, allocations: 0 / 488.8 MB, free: 11.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008519/0.1355, allocations: 387.2 kB / 489.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.1356, allocations: 59.34 kB / 489.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.1358, allocations: 258.7 kB / 489.5 MB, free: 11.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.1359, allocations: 29.7 kB / 489.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.136, allocations: 203.9 kB / 489.7 MB, free: 11.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.38e-05/0.1361, allocations: 118.3 kB / 489.8 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.1362, allocations: 78.03 kB / 489.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1364, allocations: 338.8 kB / 490.2 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/0.1366, allocations: 104.8 kB / 490.3 MB, free: 10.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002919/0.1369, allocations: 171.5 kB / 490.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005248/0.1375, allocations: 292.6 kB / 490.8 MB, free: 9.887 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.1375, allocations: 3.938 kB / 490.8 MB, free: 9.883 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000682/0.1382, allocations: 362 kB / 491.2 MB, free: 9.523 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1382, allocations: 11.94 kB / 491.2 MB, free: 9.512 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1382, allocations: 4 kB / 491.2 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.1382, allocations: 4 kB / 491.2 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.1387, allocations: 104.1 kB / 491.3 MB, free: 9.402 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.1388, allocations: 7.984 kB / 491.3 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002916/0.139, allocations: 39.53 kB / 491.3 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.1391, allocations: 19.92 kB / 491.3 MB, free: 9.336 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (47): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001511/0.1392, allocations: 153.7 kB / 491.5 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.019e-05/0.1393, allocations: 31.62 kB / 491.5 MB, free: 9.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006649/0.14, allocations: 329 kB / 491.8 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.14, allocations: 4 kB / 491.9 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.14, allocations: 0 / 491.9 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.14, allocations: 3.984 kB / 491.9 MB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004768/0.1405, allocations: 405 kB / 492.3 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.1405, allocations: 4 kB / 492.3 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004377/0.141, allocations: 79.88 kB / 492.3 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.141, allocations: 0 / 492.3 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.141, allocations: 12 kB / 492.3 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.141, allocations: 4 kB / 492.3 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.141, allocations: 0 / 492.3 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009344/0.142, allocations: 0.5104 MB / 492.9 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.1421, allocations: 128.7 kB / 493 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.1422, allocations: 8 kB / 493 MB, free: 7.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/0.1424, allocations: 12.06 kB / 493 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.257e-05/0.1425, allocations: 27.95 kB / 493 MB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.1425, allocations: 8 kB / 493 MB, free: 7.539 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001869/0.1427, allocations: 190 kB / 493.2 MB, free: 7.355 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1427, allocations: 0 / 493.2 MB, free: 7.355 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003652/0.1431, allocations: 91.75 kB / 493.3 MB, free: 7.266 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * 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 (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001137/0.1442, allocations: 1.064 MB / 494.4 MB, free: 6.176 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005814/0.1448, allocations: 271.9 kB / 494.6 MB, free: 5.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1448, allocations: 0.5 kB / 494.6 MB, free: 5.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002497/0.1451, allocations: 139.8 kB / 494.8 MB, free: 5.773 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003979/0.1455, allocations: 36.53 kB / 494.8 MB, free: 5.738 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004336/0.1499, allocations: 3.304 MB / 498.1 MB, free: 2.309 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.1502, allocations: 0.7835 MB / 498.9 MB, free: 1.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002189/0.1505, allocations: 38.95 kB / 498.9 MB, free: 1.465 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001767/0.1506, allocations: 111.4 kB / 499.1 MB, free: 1.355 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1506, allocations: 0 / 499.1 MB, free: 1.355 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03142/0.1821, allocations: 5.301 MB / 0.4925 GB, free: 12.16 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003283/0.1824, allocations: 196.4 kB / 0.4927 GB, free: 11.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.046/2.228, allocations: 3.938 kB / 0.4927 GB, free: 11.91 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Magnetic/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches