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/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001021/0.001021, allocations: 183 kB / 17.91 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.128/1.128, allocations: 205.1 MB / 223.7 MB, free: 8.504 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008779/0.0008779, allocations: 91.92 kB / 271.2 MB, free: 8.465 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007264/0.0007265, allocations: 39.94 kB / 327.2 MB, free: 352 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1802/0.1809, allocations: 46.62 MB / 373.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.00269/0.1836, allocations: 2.489 MB / 376.3 MB, free: 43.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007904/0.1844, allocations: 0.7596 MB / 377.1 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.683e-05/0.1846, allocations: 4.125 kB / 377.1 MB, free: 43.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.1847, allocations: 35.83 kB / 377.1 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001422/0.1848, allocations: 91.55 kB / 377.2 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002286/0.1851, allocations: 109 kB / 377.3 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002992/0.1854, allocations: 452.6 kB / 377.7 MB, free: 42.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.1855, allocations: 71.66 kB / 377.8 MB, free: 42.72 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.1856, allocations: 167.1 kB / 378 MB, free: 42.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.1858, allocations: 204.4 kB / 378.2 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.6e-05/0.1859, allocations: 22.62 kB / 378.2 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.446e-05/0.1859, allocations: 21.91 kB / 378.2 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.992e-05/0.186, allocations: 70.05 kB / 378.3 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.1861, allocations: 163.7 kB / 378.4 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002408/0.1863, allocations: 388.5 kB / 378.8 MB, free: 42.04 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.1864, allocations: 3.938 kB / 378.8 MB, free: 42.04 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.1864, allocations: 0 / 378.8 MB, free: 42.04 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.1864, allocations: 1.219 kB / 378.8 MB, free: 42.04 MB / 298.7 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.001251/0.1876, allocations: 0.6768 MB / 379.5 MB, free: 41.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.989e-05/0.1877, allocations: 12.8 kB / 379.5 MB, free: 41.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.589e-05/0.1877, allocations: 34.88 kB / 379.6 MB, free: 41.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002261/0.188, allocations: 277.3 kB / 379.8 MB, free: 41.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003192/0.1883, allocations: 125.8 kB / 379.9 MB, free: 41.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.872e-05/0.1884, allocations: 25.25 kB / 380 MB, free: 41.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007369/0.1891, allocations: 378.2 kB / 380.3 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.1891, allocations: 6 kB / 380.3 MB, free: 40.83 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.1892, allocations: 14.11 kB / 380.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1892, allocations: 14.75 kB / 380.4 MB, free: 40.81 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.1902, allocations: 389.1 kB / 380.8 MB, free: 40.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009198/0.1911, allocations: 0.9826 MB / 381.7 MB, free: 39.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008726/0.192, allocations: 406 kB / 382.1 MB, free: 39.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000518/0.1925, allocations: 215.7 kB / 382.3 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.1926, allocations: 3.25 kB / 382.4 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.324e-05/0.1926, allocations: 40.72 kB / 382.4 MB, free: 39.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 1.403e-06/0.1926, allocations: 1.438 kB / 382.4 MB, free: 39.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.003785/0.1964, allocations: 2.314 MB / 384.7 MB, free: 37.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.1964, allocations: 119 kB / 384.8 MB, free: 37.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.1966, allocations: 205.6 kB / 385 MB, free: 37.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.1966, allocations: 30.95 kB / 385.1 MB, free: 37.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.057e-05/0.1967, allocations: 151.6 kB / 385.2 MB, free: 37.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.119e-05/0.1967, allocations: 130 kB / 385.3 MB, free: 36.93 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.1968, allocations: 72.41 kB / 385.4 MB, free: 36.88 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.422e-05/0.1969, allocations: 341.8 kB / 385.7 MB, free: 36.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002771/0.1972, allocations: 112.7 kB / 385.8 MB, free: 36.49 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002856/0.1975, allocations: 165.5 kB / 386 MB, free: 36.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005465/0.198, allocations: 299.2 kB / 386.3 MB, free: 36.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.198, allocations: 1.125 kB / 386.3 MB, free: 36.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006913/0.1987, allocations: 367.9 kB / 386.7 MB, free: 36.03 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.1987, allocations: 8.484 kB / 386.7 MB, free: 36.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1988, allocations: 2.656 kB / 386.7 MB, free: 36.02 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.1988, allocations: 2.938 kB / 386.7 MB, free: 36.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006271/0.1994, allocations: 155.8 kB / 386.8 MB, free: 35.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.353e-06/0.1994, allocations: 4 kB / 386.8 MB, free: 35.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/0.1996, allocations: 19.98 kB / 386.8 MB, free: 35.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.559e-05/0.1997, allocations: 20 kB / 386.9 MB, free: 35.89 MB / 298.7 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 8.858e-05/0.1997, allocations: 141.8 kB / 387 MB, free: 35.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-05/0.1998, allocations: 31.64 kB / 387 MB, free: 35.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.463e-05/0.1999, allocations: 34.47 kB / 387.1 MB, free: 35.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.1999, allocations: 4 kB / 387.1 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1999, allocations: 0 / 387.1 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1999, allocations: 3.984 kB / 387.1 MB, free: 35.67 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001708/0.2016, allocations: 1.337 MB / 388.4 MB, free: 34.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2016, allocations: 0 / 388.4 MB, free: 34.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007156/0.2024, allocations: 168 kB / 388.6 MB, free: 34.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.2024, allocations: 7.984 kB / 388.6 MB, free: 34.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.561e-05/0.2024, allocations: 11.94 kB / 388.6 MB, free: 34.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.2024, allocations: 4 kB / 388.6 MB, free: 34.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2024, allocations: 4 kB / 388.6 MB, free: 34.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005944/0.2084, allocations: 3.434 MB / 392 MB, free: 30.46 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.555e-05/0.2085, allocations: 124.8 kB / 392.2 MB, free: 30.32 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.555e-05/0.2085, allocations: 16 kB / 392.2 MB, free: 30.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003682/0.2089, allocations: 47.94 kB / 392.2 MB, free: 30.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.231e-05/0.209, allocations: 39.83 kB / 392.3 MB, free: 30.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.209, allocations: 19.98 kB / 392.3 MB, free: 30.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.617e-05/0.2091, allocations: 148.6 kB / 392.4 MB, free: 30.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2091, allocations: 0 / 392.4 MB, free: 30.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004831/0.2096, allocations: 116 kB / 392.5 MB, free: 29.94 MB / 298.7 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 8.586e-05/0.2097, allocations: 111.2 kB / 392.6 MB, free: 29.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008056/0.2105, allocations: 367.5 kB / 393 MB, free: 29.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.2105, allocations: 0 / 393 MB, free: 29.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005415/0.2111, allocations: 252 kB / 393.3 MB, free: 29.21 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006242/0.2117, allocations: 67.44 kB / 393.3 MB, free: 29.15 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.216, allocations: 1.785 MB / 395.1 MB, free: 27.3 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001762/0.2162, allocations: 0.7841 MB / 395.9 MB, free: 26.49 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002101/0.2164, allocations: 50.94 kB / 395.9 MB, free: 26.44 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001536/0.2166, allocations: 35.36 kB / 396 MB, free: 26.4 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2166, allocations: 0 / 396 MB, free: 26.4 MB / 298.7 MB Notification: Performance of Templates: time 0.007319/0.2239, allocations: 4.879 MB / 400.9 MB, free: 21.54 MB / 298.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches