Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Translational.AllComponents.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.Translational.AllComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Translational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Translational.AllComponents,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Translational_AllComponents",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001365/0.001365, allocations: 104.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001691/0.001691, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2253/0.2253, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 81.45 kB / 417.7 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.123, allocations: 62.44 MB / 480.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Translational.AllComponents): time 0.006465/0.1296, allocations: 4.161 MB / 484.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002888/0.1325, allocations: 1.18 MB / 485.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006825/0.1332, allocations: 15.94 kB / 485.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004341/0.1336, allocations: 98.95 kB / 485.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000979/0.1347, allocations: 206.1 kB / 485.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008007/0.1355, allocations: 227.6 kB / 486 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.1366, allocations: 0.7978 MB / 486.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004321/0.137, allocations: 231.5 kB / 487 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000535/0.1376, allocations: 310.9 kB / 487.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004937/0.1381, allocations: 350.4 kB / 487.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001505/0.1382, allocations: 60 kB / 487.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002583/0.1385, allocations: 87.98 kB / 487.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001555/0.1387, allocations: 147.4 kB / 488 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004406/0.1391, allocations: 358.1 kB / 488.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008344/0.14, allocations: 0.7709 MB / 489.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.14, allocations: 0 / 489.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.14, allocations: 0 / 489.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.722e-05/0.14, allocations: 0 / 489.1 MB, free: 12.16 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002168/0.1422, allocations: 1.017 MB / 490.1 MB, free: 11.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.1423, allocations: 8.031 kB / 490.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001527/0.1424, allocations: 102.7 kB / 490.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007308/0.1432, allocations: 147.9 kB / 490.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006331/0.1438, allocations: 413.6 kB / 490.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.57e-05/0.1439, allocations: 45.69 kB / 490.8 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.144, allocations: 68.03 kB / 490.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.1452, allocations: 0.6232 MB / 491.5 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.167e-05/0.1452, allocations: 11.91 kB / 491.5 MB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.387e-05/0.1453, allocations: 24 kB / 491.5 MB, free: 9.594 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.458e-05/0.1453, allocations: 12 kB / 491.5 MB, free: 9.582 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.1464, allocations: 0.5152 MB / 492.1 MB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003484/0.1499, allocations: 2.182 MB / 494.2 MB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.1513, allocations: 0.6837 MB / 494.9 MB, free: 6.023 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006483/0.1519, allocations: 335.5 kB / 495.2 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001593/0.1521, allocations: 101.5 kB / 495.3 MB, free: 5.555 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.201e-05/0.1522, allocations: 46.94 kB / 495.4 MB, free: 5.496 MB / 366.1 MB Notification: Performance of pre-optimization done (n=83): time 2.795e-06/0.1522, allocations: 0 / 495.4 MB, free: 5.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.008494/0.1607, allocations: 4.488 MB / 499.9 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001212/0.1608, allocations: 222.3 kB / 0.4884 GB, free: 400 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004043/0.1612, allocations: 389.8 kB / 0.4887 GB, free: 4 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.582e-05/0.1613, allocations: 45.7 kB / 0.4888 GB, free: 15.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001956/0.1615, allocations: 281 kB / 0.4891 GB, free: 15.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002999/0.1618, allocations: 413.9 kB / 0.4895 GB, free: 15.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002426/0.1621, allocations: 175 kB / 0.4896 GB, free: 15.08 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.1623, allocations: 382.8 kB / 0.49 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006388/0.1629, allocations: 310.4 kB / 0.4903 GB, free: 14.4 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007651/0.1637, allocations: 0.5043 MB / 0.4908 GB, free: 13.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001401/0.1651, allocations: 0.8544 MB / 0.4916 GB, free: 12.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.1651, allocations: 3.938 kB / 0.4916 GB, free: 12.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.001743/0.1669, allocations: 0.9994 MB / 0.4926 GB, free: 11.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.1669, allocations: 8 kB / 0.4926 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.34e-05/0.1669, allocations: 5.484 kB / 0.4926 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.289e-05/0.167, allocations: 12.09 kB / 0.4926 GB, free: 11.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009655/0.1679, allocations: 283.5 kB / 0.4929 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.525e-05/0.168, allocations: 15.94 kB / 0.4929 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004495/0.1684, allocations: 47.91 kB / 0.4929 GB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.165e-05/0.1685, allocations: 36 kB / 0.493 GB, free: 11.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 1 (elastoGap.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (145): * Single equations (assignments): 145 * 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.000303/0.1688, allocations: 237.6 kB / 0.4932 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002266/0.1691, allocations: 79.09 kB / 0.4933 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004513/0.1695, allocations: 215 kB / 0.4935 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.1695, allocations: 12.14 kB / 0.4935 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.486e-05/0.1696, allocations: 3.984 kB / 0.4935 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-05/0.1696, allocations: 11.97 kB / 0.4935 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004182/0.1738, allocations: 2.347 MB / 0.4958 GB, free: 8.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/0.1738, allocations: 8.062 kB / 0.4958 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001066/0.1749, allocations: 247.6 kB / 0.496 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.416e-05/0.1749, allocations: 11.98 kB / 0.4961 GB, free: 8.223 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-05/0.175, allocations: 28 kB / 0.4961 GB, free: 8.195 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-05/0.175, allocations: 8 kB / 0.4961 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.175, allocations: 7.938 kB / 0.4961 GB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002701/0.1777, allocations: 1.881 MB / 0.4979 GB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003636/0.1781, allocations: 200 kB / 0.4981 GB, free: 6.039 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/0.1783, allocations: 28 kB / 0.4982 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006823/0.179, allocations: 40.16 kB / 0.4982 GB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002112/0.1792, allocations: 88.33 kB / 0.4983 GB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.477e-05/0.1793, allocations: 47.86 kB / 0.4983 GB, free: 5.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002882/0.1795, allocations: 263.1 kB / 0.4986 GB, free: 5.582 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1796, allocations: 0 / 0.4986 GB, free: 5.582 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009141/0.1805, allocations: 196 kB / 0.4988 GB, free: 5.391 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 15 (slidingMass.s,slidingMass.v,damper.s_rel,springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,relativeStates.s_rel,relativeStates.v_rel,position2.s,position2.v,position1.s,position1.v,position.s,position.v) * Number of discrete variables: 1 (elastoGap.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 116 * 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.002939/0.1834, allocations: 2.452 MB / 0.5012 GB, free: 2.879 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.1854, allocations: 0.8891 MB / 0.502 GB, free: 1.992 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.1854, allocations: 0 / 0.502 GB, free: 1.992 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007962/0.1862, allocations: 496.1 kB / 0.5025 GB, free: 1.512 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001274/0.1875, allocations: 143.2 kB / 0.5026 GB, free: 1.375 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2277/0.4152, allocations: 7.414 MB / 0.5099 GB, free: 38.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005332/0.4158, allocations: 0.9506 MB / 0.5108 GB, free: 37.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004435/0.4162, allocations: 100.6 kB / 0.5109 GB, free: 37.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003201/0.4166, allocations: 276.3 kB / 0.5112 GB, free: 37.39 MB / 382.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4166, allocations: 0 / 0.5112 GB, free: 37.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03809/0.4547, allocations: 13.94 MB / 0.5248 GB, free: 33.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.828/8.282, allocations: 2.812 kB / 0.5248 GB, free: 33.37 MB / 382.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Translational.AllComponents.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Translational.AllComponents.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Translational.AllComponents.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Translational.AllComponents.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Translational.AllComponents_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_trunk_ModelicaTest_Translational_AllComponents.fmu > ModelicaTest_trunk_ModelicaTest.Translational.AllComponents.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Translational.AllComponents_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Translational/AllComponents/AllComponents.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Translational.AllComponents.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches