Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.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) 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: translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad") translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|friction.v_rel|innerContactA.s_rel|innerContactB.s_rel|outerContactA.v_rel|outerContactB.s_rel|outerContactB.v_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 112.2 kB / 17.28 MB, free: 6.199 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.001252/0.001252, allocations: 189.3 kB / 18.2 MB, free: 5.277 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.512/1.512, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.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.001278/0.001278, allocations: 51.94 kB / 280.1 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1105, allocations: 46.63 MB / 326.8 MB, free: 4.805 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.PreLoad): time 0.005396/0.116, allocations: 3.55 MB / 330.3 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001893/0.1179, allocations: 0.9083 MB / 331.2 MB, free: 316 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004827/0.1184, allocations: 11.94 kB / 331.2 MB, free: 304 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003414/0.1188, allocations: 59.53 kB / 331.3 MB, free: 244 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005129/0.1193, allocations: 127 kB / 331.4 MB, free: 116 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006183/0.12, allocations: 135.8 kB / 331.6 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009352/0.1209, allocations: 0.5879 MB / 332.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004285/0.1214, allocations: 193.5 kB / 332.3 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005031/0.1219, allocations: 243.2 kB / 332.6 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004775/0.1224, allocations: 266.9 kB / 332.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.1225, allocations: 52 kB / 332.9 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001723/0.1227, allocations: 52 kB / 332.9 MB, free: 14.6 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.1228, allocations: 119.6 kB / 333 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003372/0.1231, allocations: 278.6 kB / 333.3 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000676/0.1238, allocations: 0.588 MB / 333.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1238, allocations: 0 / 333.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.1239, allocations: 0 / 333.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.893e-05/0.1239, allocations: 0 / 333.9 MB, free: 13.62 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001874/0.1258, allocations: 0.842 MB / 334.7 MB, free: 12.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1258, allocations: 11.97 kB / 334.8 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.1259, allocations: 56.28 kB / 334.8 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004167/0.1264, allocations: 327.2 kB / 335.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.658e-05/0.1264, allocations: 37.38 kB / 335.2 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.662e-05/0.1265, allocations: 52.38 kB / 335.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008946/0.1274, allocations: 450.7 kB / 335.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.466e-05/0.1275, allocations: 4 kB / 335.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.409e-05/0.1275, allocations: 20 kB / 335.7 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.1275, allocations: 8 kB / 335.7 MB, free: 11.74 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009525/0.1285, allocations: 459.7 kB / 336.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00222/0.1307, allocations: 1.39 MB / 337.5 MB, free: 9.836 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008698/0.1316, allocations: 0.5401 MB / 338.1 MB, free: 9.285 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007217/0.1323, allocations: 374.9 kB / 338.4 MB, free: 8.918 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.934e-05/0.1324, allocations: 8.562 kB / 338.4 MB, free: 8.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.1324, allocations: 39.11 kB / 338.5 MB, free: 8.863 MB / 286.1 MB Notification: Performance of pre-optimization done (n=67): time 1.953e-06/0.1324, allocations: 0 / 338.5 MB, free: 8.863 MB / 286.1 MB Notification: Performance of matching and sorting (n=103): time 0.006945/0.1394, allocations: 3.143 MB / 341.6 MB, free: 5.633 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.1395, allocations: 60.41 kB / 341.7 MB, free: 5.559 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002552/0.1397, allocations: 254.9 kB / 341.9 MB, free: 5.301 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.486e-05/0.1398, allocations: 41.7 kB / 342 MB, free: 5.254 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1399, allocations: 193.3 kB / 342.2 MB, free: 5.059 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.1402, allocations: 354.8 kB / 342.5 MB, free: 4.707 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.1404, allocations: 142.7 kB / 342.7 MB, free: 4.562 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1405, allocations: 358.8 kB / 343 MB, free: 4.203 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005416/0.1411, allocations: 273.8 kB / 343.3 MB, free: 3.938 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005871/0.1417, allocations: 353.4 kB / 343.6 MB, free: 3.582 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001104/0.1428, allocations: 0.6195 MB / 344.2 MB, free: 2.957 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1428, allocations: 0 / 344.2 MB, free: 2.957 MB / 286.1 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.001387/0.1442, allocations: 0.7859 MB / 345 MB, free: 2.16 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.1442, allocations: 7.125 kB / 345 MB, free: 2.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1442, allocations: 4 kB / 345 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-05/0.1443, allocations: 11.94 kB / 345 MB, free: 2.141 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007992/0.1451, allocations: 203.7 kB / 345.2 MB, free: 1.941 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.1451, allocations: 4 kB / 345.2 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.1454, allocations: 51.95 kB / 345.3 MB, free: 1.887 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.365e-05/0.1455, allocations: 35.92 kB / 345.3 MB, free: 1.852 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (outerContactB.contact,outerContactA.contact,innerContactB.contact,innerContactA.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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.0002543/0.1458, allocations: 193.7 kB / 345.5 MB, free: 1.652 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.418e-05/0.1459, allocations: 55.34 kB / 345.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001583/0.146, allocations: 73.33 kB / 345.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.859e-06/0.146, allocations: 12 kB / 345.7 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/0.1461, allocations: 0 / 345.7 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.1461, allocations: 3.984 kB / 345.7 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002954/0.149, allocations: 2.006 MB / 347.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.241e-06/0.1491, allocations: 4 kB / 347.7 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007655/0.1498, allocations: 200.3 kB / 347.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/0.1498, allocations: 15.98 kB / 347.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.148e-05/0.1499, allocations: 31.94 kB / 347.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.575e-06/0.1499, allocations: 8 kB / 347.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/0.1499, allocations: 11.92 kB / 347.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002074/0.152, allocations: 1.36 MB / 349.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.771e-05/0.1521, allocations: 132.5 kB / 349.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.462e-05/0.1522, allocations: 23.94 kB / 349.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003748/0.1526, allocations: 51.95 kB / 349.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.1527, allocations: 72.8 kB / 349.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.1528, allocations: 35.98 kB / 349.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001679/0.1529, allocations: 178 kB / 349.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.153, allocations: 0 / 349.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004996/0.1535, allocations: 160 kB / 349.9 MB, free: 13.04 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * 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.0001987/0.1537, allocations: 131 kB / 350.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001797/0.1555, allocations: 0.7697 MB / 350.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1555, allocations: 0 / 350.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007426/0.1562, allocations: 446.6 kB / 351.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008885/0.1571, allocations: 124.8 kB / 351.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/0.1598, allocations: 1.766 MB / 353.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004274/0.1602, allocations: 0.8723 MB / 354 MB, free: 8.816 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003206/0.1605, allocations: 76.97 kB / 354.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001697/0.1607, allocations: 55.42 kB / 354.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1607, allocations: 0 / 354.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of Templates: time 0.01174/0.1725, allocations: 6.354 MB / 360.5 MB, free: 2.332 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.sim & ./Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/PreLoad/PreLoad.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.PreLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches