Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.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.Rotational.Examples.Backlash,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|elastoBacklash.phi_rel|elastoBacklash.w_rel|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash") translateModel(Modelica.Mechanics.Rotational.Examples.Backlash,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|elastoBacklash.phi_rel|elastoBacklash.w_rel|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 104.5 kB / 18.35 MB, free: 4.645 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.00131/0.00131, allocations: 191 kB / 19.29 MB, free: 3.715 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.445/1.445, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.002209/0.002209, allocations: 47.92 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1044, allocations: 46.63 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003654/0.1081, allocations: 2.436 MB / 331.2 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.1095, allocations: 0.7766 MB / 331.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001662/0.1097, allocations: 7.938 kB / 331.9 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.1099, allocations: 39.59 kB / 332 MB, free: 488 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002342/0.1101, allocations: 107.1 kB / 332.1 MB, free: 380 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003407/0.1105, allocations: 123.8 kB / 332.2 MB, free: 256 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004652/0.1109, allocations: 478.1 kB / 332.7 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.1111, allocations: 80.88 kB / 332.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002544/0.1114, allocations: 191.4 kB / 332.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.1116, allocations: 199.3 kB / 333.1 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.394e-05/0.1117, allocations: 36 kB / 333.2 MB, free: 15.28 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.14e-05/0.1118, allocations: 40 kB / 333.2 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.636e-05/0.1118, allocations: 87.72 kB / 333.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.112, allocations: 175.2 kB / 333.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003678/0.1124, allocations: 410.6 kB / 333.9 MB, free: 14.58 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.1124, allocations: 7.984 kB / 333.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1124, allocations: 0 / 333.9 MB, free: 14.57 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.1124, allocations: 4 kB / 333.9 MB, free: 14.57 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001482/0.1139, allocations: 0.6783 MB / 334.6 MB, free: 13.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.142e-05/0.114, allocations: 12.03 kB / 334.6 MB, free: 13.83 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.917e-05/0.114, allocations: 36.56 kB / 334.6 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003689/0.1144, allocations: 271.6 kB / 334.9 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.1145, allocations: 88.27 kB / 335 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.363e-05/0.1146, allocations: 31.91 kB / 335 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008439/0.1154, allocations: 379.2 kB / 335.4 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.1155, allocations: 4 kB / 335.4 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.384e-05/0.1155, allocations: 12 kB / 335.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.1155, allocations: 4 kB / 335.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001149/0.1167, allocations: 395.5 kB / 335.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.1179, allocations: 0.962 MB / 336.7 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009832/0.1189, allocations: 407.5 kB / 337.1 MB, free: 11.12 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005785/0.1195, allocations: 218.4 kB / 337.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.1196, allocations: 11.92 kB / 337.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.1196, allocations: 34.56 kB / 337.4 MB, free: 10.85 MB / 286.1 MB Notification: Performance of pre-optimization done (n=32): time 1.553e-06/0.1196, allocations: 4 kB / 337.4 MB, free: 10.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=38): time 0.004606/0.1242, allocations: 2.324 MB / 339.7 MB, free: 8.254 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.934e-05/0.1243, allocations: 106.8 kB / 339.8 MB, free: 8.125 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001902/0.1245, allocations: 203.2 kB / 340 MB, free: 7.914 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.1245, allocations: 33.7 kB / 340 MB, free: 7.875 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.793e-05/0.1246, allocations: 152.6 kB / 340.2 MB, free: 7.723 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.1247, allocations: 137.9 kB / 340.3 MB, free: 7.586 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001266/0.1249, allocations: 74.12 kB / 340.4 MB, free: 7.508 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.125, allocations: 338.8 kB / 340.7 MB, free: 7.168 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003011/0.1253, allocations: 108.8 kB / 340.8 MB, free: 7.062 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003142/0.1256, allocations: 169.4 kB / 341 MB, free: 6.875 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005873/0.1262, allocations: 285 kB / 341.3 MB, free: 6.578 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.1262, allocations: 0 / 341.3 MB, free: 6.578 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007551/0.127, allocations: 377 kB / 341.7 MB, free: 6.203 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.127, allocations: 4 kB / 341.7 MB, free: 6.199 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.116e-06/0.127, allocations: 4 kB / 341.7 MB, free: 6.195 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1271, allocations: 0 / 341.7 MB, free: 6.195 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006713/0.1277, allocations: 143.9 kB / 341.8 MB, free: 6.055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.1278, allocations: 7.984 kB / 341.8 MB, free: 6.047 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002215/0.128, allocations: 31.98 kB / 341.8 MB, free: 6.016 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.128, allocations: 12.94 kB / 341.9 MB, free: 6.004 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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.0001419/0.1282, allocations: 145.7 kB / 342 MB, free: 5.852 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.328e-05/0.1283, allocations: 35.5 kB / 342 MB, free: 5.816 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.508e-05/0.1283, allocations: 37.52 kB / 342.1 MB, free: 5.777 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.1283, allocations: 4 kB / 342.1 MB, free: 5.773 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.1284, allocations: 0 / 342.1 MB, free: 5.773 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1284, allocations: 3.984 kB / 342.1 MB, free: 5.77 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002243/0.1306, allocations: 1.315 MB / 343.4 MB, free: 4.359 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.1306, allocations: 8.188 kB / 343.4 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008103/0.1315, allocations: 163.8 kB / 343.6 MB, free: 4.191 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.255e-06/0.1315, allocations: 8 kB / 343.6 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.1315, allocations: 15.92 kB / 343.6 MB, free: 4.168 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.442e-06/0.1315, allocations: 7.938 kB / 343.6 MB, free: 4.16 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1315, allocations: 0 / 343.6 MB, free: 4.16 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001882/0.1334, allocations: 0.9515 MB / 344.5 MB, free: 3.172 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.1336, allocations: 132.8 kB / 344.7 MB, free: 3.023 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.114e-05/0.1336, allocations: 19.92 kB / 344.7 MB, free: 3.004 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000409/0.1341, allocations: 43.95 kB / 344.7 MB, free: 2.961 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.829e-05/0.1342, allocations: 36.08 kB / 344.8 MB, free: 2.926 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.896e-05/0.1342, allocations: 19.98 kB / 344.8 MB, free: 2.906 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001245/0.1343, allocations: 156.6 kB / 344.9 MB, free: 2.754 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1343, allocations: 0 / 344.9 MB, free: 2.754 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004276/0.1348, allocations: 80 kB / 345 MB, free: 2.676 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (elastoBacklash2.phi_rel,elastoBacklash2.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,springDamper.phi_rel,springDamper.w_rel) * 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 (38): * Single equations (assignments): 38 * 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.000125/0.1349, allocations: 115.1 kB / 345.1 MB, free: 2.555 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009519/0.1359, allocations: 364.1 kB / 345.5 MB, free: 2.199 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1359, allocations: 8.125 kB / 345.5 MB, free: 2.191 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006351/0.1365, allocations: 243.7 kB / 345.7 MB, free: 1.953 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006758/0.1372, allocations: 91.12 kB / 345.8 MB, free: 1.867 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004552/0.1418, allocations: 1.413 MB / 347.2 MB, free: 412 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.1421, allocations: 0.7682 MB / 348 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001513/0.1423, allocations: 42.94 kB / 348 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.1424, allocations: 27.44 kB / 348.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1424, allocations: 3.938 kB / 348.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Templates: time 0.007734/0.1501, allocations: 4.278 MB / 352.4 MB, free: 11.25 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches