Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001253/0.001252, allocations: 112.9 kB / 17.69 MB, free: 5.309 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.001075/0.001075, allocations: 192 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 242.3 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 45.77 kB / 302.1 MB, free: 5.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1339, allocations: 49.45 MB / 351.5 MB, free: 3.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003342/0.1373, allocations: 2.437 MB / 353.9 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.1385, allocations: 0.7289 MB / 354.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001054/0.1386, allocations: 4 kB / 354.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.1387, allocations: 43.52 kB / 354.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001856/0.1389, allocations: 115 kB / 354.8 MB, free: 408 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003198/0.1392, allocations: 119.8 kB / 355 MB, free: 288 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004173/0.1397, allocations: 466.2 kB / 355.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001736/0.1398, allocations: 84.91 kB / 355.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002033/0.1401, allocations: 183.4 kB / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002263/0.1403, allocations: 207.3 kB / 355.9 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.314e-05/0.1404, allocations: 36 kB / 355.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.64e-05/0.1404, allocations: 43.94 kB / 355.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.593e-05/0.1405, allocations: 87.72 kB / 356 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001636/0.1407, allocations: 179.2 kB / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003656/0.1411, allocations: 414.7 kB / 356.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1411, allocations: 0 / 356.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1411, allocations: 0 / 356.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1411, allocations: 0 / 356.6 MB, free: 14.61 MB / 302.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.001454/0.1425, allocations: 0.6745 MB / 357.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.1426, allocations: 11.97 kB / 357.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.524e-05/0.1427, allocations: 28.66 kB / 357.3 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004395/0.1431, allocations: 287.4 kB / 357.6 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.1432, allocations: 88.27 kB / 357.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.069e-05/0.1433, allocations: 27.91 kB / 357.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008507/0.1442, allocations: 379.2 kB / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.1442, allocations: 0 / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.348e-05/0.1442, allocations: 12 kB / 358.1 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.1443, allocations: 11.98 kB / 358.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.1454, allocations: 395.5 kB / 358.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.1467, allocations: 0.9661 MB / 359.5 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000986/0.1477, allocations: 395.6 kB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005736/0.1482, allocations: 218.4 kB / 360.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.1483, allocations: 8 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/0.1483, allocations: 42.56 kB / 360.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.613e-06/0.1483, allocations: 0 / 360.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.004534/0.1529, allocations: 2.324 MB / 362.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.1529, allocations: 110.8 kB / 362.5 MB, free: 8.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.1531, allocations: 203.2 kB / 362.7 MB, free: 7.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.12e-05/0.1532, allocations: 33.7 kB / 362.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.037e-05/0.1532, allocations: 148.6 kB / 362.9 MB, free: 7.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.009e-05/0.1533, allocations: 141.9 kB / 363.1 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.1535, allocations: 70.12 kB / 363.1 MB, free: 7.551 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.1536, allocations: 338.8 kB / 363.5 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003062/0.1539, allocations: 112.8 kB / 363.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003183/0.1543, allocations: 165.5 kB / 363.7 MB, free: 6.922 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006867/0.155, allocations: 296.4 kB / 364 MB, free: 6.617 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.155, allocations: 0 / 364 MB, free: 6.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000785/0.1558, allocations: 364.9 kB / 364.4 MB, free: 6.254 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.1558, allocations: 11.98 kB / 364.4 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.1558, allocations: 0 / 364.4 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.737e-05/0.1558, allocations: 4 kB / 364.4 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006764/0.1565, allocations: 147.9 kB / 364.5 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.1565, allocations: 4 kB / 364.5 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002241/0.1568, allocations: 27.98 kB / 364.6 MB, free: 6.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.928e-05/0.1568, allocations: 8 kB / 364.6 MB, free: 6.055 MB / 302.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.0001478/0.1569, allocations: 149.7 kB / 364.7 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.896e-05/0.157, allocations: 39.64 kB / 364.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.267e-05/0.1571, allocations: 25.53 kB / 364.8 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1571, allocations: 8 kB / 364.8 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.1571, allocations: 4.938 kB / 364.8 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.1572, allocations: 3.984 kB / 364.8 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002283/0.1594, allocations: 1.331 MB / 366.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.1595, allocations: 0 / 366.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008293/0.1603, allocations: 168.1 kB / 366.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.1603, allocations: 11.92 kB / 366.3 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.645e-05/0.1604, allocations: 19.92 kB / 366.3 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.1604, allocations: 4 kB / 366.3 MB, free: 4.195 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.1604, allocations: 7.938 kB / 366.3 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001899/0.1623, allocations: 0.9523 MB / 367.3 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.1624, allocations: 128.8 kB / 367.4 MB, free: 3.051 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.158e-05/0.1625, allocations: 11.94 kB / 367.4 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00042/0.1629, allocations: 43.95 kB / 367.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.1631, allocations: 43.89 kB / 367.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.017e-05/0.1631, allocations: 15.98 kB / 367.5 MB, free: 2.938 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001354/0.1632, allocations: 152.6 kB / 367.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1632, allocations: 0 / 367.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004761/0.1637, allocations: 84 kB / 367.8 MB, free: 2.707 MB / 302.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.0001515/0.1639, allocations: 115.1 kB / 367.9 MB, free: 2.582 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.1649, allocations: 370.1 kB / 368.2 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.1649, allocations: 0 / 368.2 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006494/0.1656, allocations: 248 kB / 368.5 MB, free: 1.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006739/0.1663, allocations: 72.06 kB / 368.6 MB, free: 1.914 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004742/0.171, allocations: 1.432 MB / 370 MB, free: 440 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1446/0.3156, allocations: 0.763 MB / 370.7 MB, free: 25.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002413/0.3159, allocations: 38.58 kB / 370.8 MB, free: 25.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001312/0.3161, allocations: 36.2 kB / 370.8 MB, free: 25.24 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3161, allocations: 1.969 kB / 370.8 MB, free: 25.24 MB / 302.1 MB Notification: Performance of Templates: time 0.009318/0.3254, allocations: 4.276 MB / 375.1 MB, free: 25.13 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches