Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.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) 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: 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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Backlash") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001504/0.001504, allocations: 117.2 kB / 17.79 MB, free: 5.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001593/0.001593, allocations: 200.6 kB / 18.73 MB, free: 4.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2697, allocations: 50.53 MB / 409.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003536/0.2732, allocations: 2.455 MB / 411.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.2746, allocations: 0.7717 MB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.2748, allocations: 8 kB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.2749, allocations: 47.52 kB / 412.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002129/0.2751, allocations: 103.1 kB / 412.6 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000367/0.2755, allocations: 127.3 kB / 412.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003907/0.2759, allocations: 462.2 kB / 413.2 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.2761, allocations: 96.86 kB / 413.3 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002025/0.2763, allocations: 187.4 kB / 413.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002146/0.2765, allocations: 207.3 kB / 413.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.982e-05/0.2766, allocations: 36 kB / 413.7 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.694e-05/0.2767, allocations: 40 kB / 413.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.147e-05/0.2768, allocations: 87.72 kB / 413.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.2769, allocations: 175.2 kB / 414 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003795/0.2773, allocations: 411.8 kB / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2773, allocations: 0 / 414.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2773, allocations: 4 kB / 414.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.2773, allocations: 0 / 414.4 MB, free: 12.38 MB / 334.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.001487/0.2788, allocations: 0.6822 MB / 415.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.2789, allocations: 8.031 kB / 415.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.974e-05/0.279, allocations: 36.56 kB / 415.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003844/0.2793, allocations: 268.6 kB / 415.4 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001344/0.2795, allocations: 88.27 kB / 415.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.629e-05/0.2796, allocations: 31.89 kB / 415.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008332/0.2804, allocations: 383.2 kB / 415.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.06e-05/0.2804, allocations: 11.92 kB / 415.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.213e-05/0.2805, allocations: 8 kB / 415.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.2805, allocations: 8 kB / 415.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001104/0.2816, allocations: 395.5 kB / 416.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.2828, allocations: 0.966 MB / 417.3 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009804/0.2838, allocations: 391.6 kB / 417.6 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005661/0.2844, allocations: 226.4 kB / 417.9 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.544e-05/0.2844, allocations: 7.984 kB / 417.9 MB, free: 8.703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/0.2845, allocations: 38.55 kB / 417.9 MB, free: 8.656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 2.074e-06/0.2845, allocations: 0 / 417.9 MB, free: 8.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.004421/0.2889, allocations: 2.317 MB / 420.2 MB, free: 6.074 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.97e-05/0.289, allocations: 106.8 kB / 420.3 MB, free: 5.945 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.2892, allocations: 203.5 kB / 420.5 MB, free: 5.738 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.009e-05/0.2892, allocations: 33.7 kB / 420.6 MB, free: 5.699 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.74e-05/0.2893, allocations: 148.6 kB / 420.7 MB, free: 5.551 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.711e-05/0.2894, allocations: 137.9 kB / 420.8 MB, free: 5.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.2895, allocations: 78.05 kB / 420.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.2896, allocations: 338.8 kB / 421.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003035/0.2899, allocations: 108.8 kB / 421.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003183/0.2903, allocations: 165.4 kB / 421.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005993/0.2909, allocations: 296.6 kB / 421.8 MB, free: 4.402 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.2909, allocations: 4 kB / 421.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007891/0.2917, allocations: 372.4 kB / 422.2 MB, free: 4.031 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.2917, allocations: 4 kB / 422.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.2917, allocations: 4 kB / 422.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.2917, allocations: 0 / 422.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006511/0.2924, allocations: 143.9 kB / 422.3 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.2924, allocations: 7.938 kB / 422.3 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002163/0.2926, allocations: 31.97 kB / 422.4 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.059e-05/0.2927, allocations: 16 kB / 422.4 MB, free: 3.828 MB / 334.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.0001263/0.2928, allocations: 149.7 kB / 422.5 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.957e-05/0.2929, allocations: 27.66 kB / 422.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.478e-05/0.293, allocations: 37.52 kB / 422.6 MB, free: 3.609 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.293, allocations: 4 kB / 422.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.293, allocations: 0 / 422.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.293, allocations: 0 / 422.6 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.2952, allocations: 1.319 MB / 423.9 MB, free: 2.191 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.2952, allocations: 4 kB / 423.9 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008116/0.296, allocations: 172 kB / 424.1 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.296, allocations: 4 kB / 424.1 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.242e-05/0.2961, allocations: 19.92 kB / 424.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.388e-06/0.2961, allocations: 4 kB / 424.1 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2961, allocations: 3.938 kB / 424.1 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.298, allocations: 0.9485 MB / 425.1 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.2981, allocations: 128.8 kB / 425.2 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.685e-05/0.2982, allocations: 19.94 kB / 425.2 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.2986, allocations: 47.94 kB / 425.3 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.2987, allocations: 35.95 kB / 425.3 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.891e-05/0.2987, allocations: 15.98 kB / 425.3 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001221/0.2988, allocations: 152.6 kB / 425.5 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2988, allocations: 96 / 425.5 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004279/0.2993, allocations: 87.94 kB / 425.5 MB, free: 0.5039 MB / 334.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.0001563/0.2994, allocations: 113.9 kB / 425.7 MB, free: 392 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009378/0.3004, allocations: 367.5 kB / 426 MB, free: 24 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3004, allocations: 4 kB / 426 MB, free: 20 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006372/0.301, allocations: 248.1 kB / 426.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006602/0.3017, allocations: 76.75 kB / 426.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004661/0.3064, allocations: 1.437 MB / 427.8 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.3067, allocations: 0.772 MB / 428.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001427/0.3069, allocations: 34.97 kB / 428.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.307, allocations: 31.42 kB / 428.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.307, allocations: 0 / 428.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of Templates: time 0.007768/0.3148, allocations: 4.323 MB / 432.9 MB, free: 9.062 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches