Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.Force.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Shapes_Force",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.001367/0.001367, allocations: 98.06 kB / 16.26 MB, free: 5.961 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.00135/0.00135, allocations: 189.6 kB / 17.19 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.381/1.381, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2146/0.2146, allocations: 43.51 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 75.86 kB / 382.8 MB, free: 56.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.127, allocations: 57.8 MB / 440.6 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.FluxTubes.Shapes.Force): time 0.004446/0.1315, allocations: 2.959 MB / 443.6 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.1328, allocations: 0.7682 MB / 444.4 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.133, allocations: 11.94 kB / 444.4 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000203/0.1332, allocations: 55.39 kB / 444.4 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001894/0.1334, allocations: 99.11 kB / 444.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002964/0.1337, allocations: 119.8 kB / 444.6 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003898/0.1341, allocations: 466.6 kB / 445.1 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002953/0.1344, allocations: 152 kB / 445.2 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/0.1346, allocations: 183.4 kB / 445.4 MB, free: 1.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002109/0.1348, allocations: 211 kB / 445.6 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.798e-05/0.1349, allocations: 44 kB / 445.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.871e-05/0.135, allocations: 40 kB / 445.7 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.096e-05/0.1351, allocations: 91.73 kB / 445.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001481/0.1352, allocations: 198.9 kB / 446 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003601/0.1356, allocations: 470.3 kB / 446.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.1356, allocations: 0 / 446.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1356, allocations: 0 / 446.5 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.1356, allocations: 0 / 446.5 MB, free: 0.9258 MB / 318.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.001406/0.137, allocations: 0.7058 MB / 447.2 MB, free: 176 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.955e-05/0.1371, allocations: 11.89 kB / 447.2 MB, free: 164 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.609e-05/0.1372, allocations: 78.7 kB / 447.2 MB, free: 76 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.85e-05/0.1373, allocations: 40.47 kB / 447.3 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005065/0.1378, allocations: 283.1 kB / 447.6 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.1379, allocations: 29.38 kB / 447.6 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.29e-05/0.1379, allocations: 40.38 kB / 447.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006786/0.1386, allocations: 362.5 kB / 448 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.1386, allocations: 0 / 448 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.374e-05/0.1387, allocations: 16 kB / 448 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.429e-05/0.1387, allocations: 8 kB / 448 MB, free: 15.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006445/0.1394, allocations: 303.8 kB / 448.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002331/0.1417, allocations: 1.345 MB / 449.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005499/0.1423, allocations: 282.3 kB / 449.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003324/0.1426, allocations: 153.4 kB / 450.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.277e-05/0.1427, allocations: 4.281 kB / 450.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.1427, allocations: 38.83 kB / 450.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=34): time 1.904e-06/0.1427, allocations: 0 / 450.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009309/0.1437, allocations: 386.3 kB / 450.5 MB, free: 12.67 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.1437, allocations: 55.41 kB / 450.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003014/0.144, allocations: 266.6 kB / 450.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.1441, allocations: 29.7 kB / 450.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.1442, allocations: 204 kB / 451 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001108/0.1444, allocations: 118.2 kB / 451.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.1445, allocations: 74.11 kB / 451.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.1447, allocations: 342.8 kB / 451.6 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.1449, allocations: 104.8 kB / 451.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003139/0.1452, allocations: 171.5 kB / 451.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005862/0.1458, allocations: 288.6 kB / 452.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.1458, allocations: 7.938 kB / 452.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007695/0.1466, allocations: 369.8 kB / 452.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.1466, allocations: 8 kB / 452.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/0.1467, allocations: 0 / 452.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.1467, allocations: 7.938 kB / 452.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004732/0.1472, allocations: 104.1 kB / 452.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.1472, allocations: 11.92 kB / 452.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.1475, allocations: 35.59 kB / 452.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.847e-05/0.1475, allocations: 19.92 kB / 452.7 MB, free: 10.4 MB / 334.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.000152/0.1477, allocations: 149.7 kB / 452.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.487e-05/0.1477, allocations: 31.72 kB / 452.8 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006643/0.1484, allocations: 324.3 kB / 453.2 MB, free: 9.887 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.1484, allocations: 4 kB / 453.2 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.1484, allocations: 0 / 453.2 MB, free: 9.883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.1484, allocations: 3.984 kB / 453.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004971/0.1489, allocations: 401.1 kB / 453.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.149, allocations: 7.938 kB / 453.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003982/0.1494, allocations: 79.94 kB / 453.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1494, allocations: 0 / 453.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/0.1494, allocations: 8 kB / 453.7 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.1494, allocations: 4 kB / 453.7 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1494, allocations: 3.938 kB / 453.7 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008817/0.1503, allocations: 0.5106 MB / 454.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001174/0.1504, allocations: 132.7 kB / 454.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.18e-05/0.1505, allocations: 8 kB / 454.3 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.1507, allocations: 12.06 kB / 454.3 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.584e-05/0.1508, allocations: 23.97 kB / 454.3 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.1508, allocations: 11.98 kB / 454.4 MB, free: 8.605 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001894/0.151, allocations: 186 kB / 454.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.151, allocations: 0 / 454.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003513/0.1514, allocations: 87.84 kB / 454.6 MB, free: 8.336 MB / 334.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.001196/0.1526, allocations: 1.059 MB / 455.7 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006611/0.1533, allocations: 287.5 kB / 456 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1533, allocations: 0 / 456 MB, free: 6.965 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002621/0.1535, allocations: 141 kB / 456.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003568/0.1539, allocations: 29.12 kB / 456.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004509/0.1584, allocations: 3.161 MB / 459.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004201/0.1589, allocations: 0.7835 MB / 460.1 MB, free: 2.703 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001961/0.1591, allocations: 42.94 kB / 460.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001836/0.1592, allocations: 107.4 kB / 460.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1593, allocations: 0 / 460.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.1858, allocations: 5.576 MB / 465.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.502/8.688, allocations: 7.688 kB / 465.8 MB, free: 12.98 MB / 350.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_ModelicaTest_FluxTubes_Shapes_Force.fmu > ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.Force.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.Force_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/FluxTubes/Shapes/Force/Force.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.FluxTubes.Shapes.Force.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches