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.001066/0.001066, allocations: 101.8 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001445/0.001445, allocations: 191.4 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002449/0.0002449, allocations: 8 kB / 307.1 MB, free: 1.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09441/0.09467, allocations: 51.52 MB / 358.6 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.002469/0.09718, allocations: 2.052 MB / 360.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00135/0.09855, allocations: 0.7332 MB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001769/0.09875, allocations: 4 kB / 361.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001284/0.09889, allocations: 31.72 kB / 361.5 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002647/0.09916, allocations: 91.28 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000341/0.09951, allocations: 91.89 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000494/0.1, allocations: 426.1 kB / 362 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.1002, allocations: 69.06 kB / 362.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002533/0.1005, allocations: 155.5 kB / 362.3 MB, free: 10 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.1007, allocations: 187.4 kB / 362.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.654e-05/0.1008, allocations: 20 kB / 362.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.247e-05/0.1008, allocations: 20 kB / 362.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.46e-05/0.1009, allocations: 71.78 kB / 362.6 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.526e-05/0.101, allocations: 81.52 kB / 362.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002741/0.1013, allocations: 291.5 kB / 362.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1013, allocations: 0 / 362.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1013, allocations: 0 / 362.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.1013, allocations: 0 / 362.9 MB, free: 9.336 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.001419/0.1027, allocations: 0.6706 MB / 363.6 MB, free: 8.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.1028, allocations: 8.031 kB / 363.6 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.036e-05/0.1029, allocations: 31.62 kB / 363.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000356/0.1032, allocations: 270.4 kB / 363.9 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003699/0.1036, allocations: 127.9 kB / 364 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.948e-05/0.1037, allocations: 27.98 kB / 364 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009307/0.1046, allocations: 419.9 kB / 364.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.1047, allocations: 7.906 kB / 364.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.1047, allocations: 12 kB / 364.5 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.1047, allocations: 4 kB / 364.5 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.1061, allocations: 460.3 kB / 364.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.1073, allocations: 0.9744 MB / 365.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.1084, allocations: 459.4 kB / 366.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005942/0.109, allocations: 250.4 kB / 366.6 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.418e-05/0.109, allocations: 7.984 kB / 366.6 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.1091, allocations: 42.55 kB / 366.6 MB, free: 5.395 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.603e-06/0.1091, allocations: 0 / 366.6 MB, free: 5.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.004815/0.1139, allocations: 2.504 MB / 369.2 MB, free: 2.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.114, allocations: 110.8 kB / 369.3 MB, free: 2.496 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/0.1142, allocations: 207.1 kB / 369.5 MB, free: 2.281 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.1142, allocations: 29.7 kB / 369.5 MB, free: 2.246 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.764e-05/0.1143, allocations: 152.6 kB / 369.6 MB, free: 2.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.1145, allocations: 138 kB / 369.8 MB, free: 1.957 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.507e-05/0.1145, allocations: 11.98 kB / 369.8 MB, free: 1.945 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1146, allocations: 334.8 kB / 370.1 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.1149, allocations: 117.7 kB / 370.2 MB, free: 1.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003264/0.1152, allocations: 169.5 kB / 370.4 MB, free: 1.312 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003025/0.1155, allocations: 138.1 kB / 370.5 MB, free: 1.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1156, allocations: 4 kB / 370.5 MB, free: 1.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007376/0.1163, allocations: 367.5 kB / 370.9 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.1163, allocations: 8 kB / 370.9 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1164, allocations: 4.094 kB / 370.9 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.1164, allocations: 4 kB / 370.9 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006617/0.117, allocations: 167.8 kB / 371.1 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.1171, allocations: 0 / 371.1 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.1173, allocations: 39.88 kB / 371.1 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.215e-05/0.1173, allocations: 16 kB / 371.1 MB, free: 0.5781 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.1174, allocations: 153.7 kB / 371.3 MB, free: 428 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.916e-05/0.1175, allocations: 23.72 kB / 371.3 MB, free: 404 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.71e-05/0.1176, allocations: 29.53 kB / 371.3 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1176, allocations: 8 kB / 371.3 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1176, allocations: 0 / 371.3 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1176, allocations: 3.984 kB / 371.3 MB, free: 360 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1582/0.2759, allocations: 1.384 MB / 372.7 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/0.2759, allocations: 2.031 kB / 372.7 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008238/0.2767, allocations: 205.8 kB / 372.9 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.556e-06/0.2768, allocations: 4.672 kB / 372.9 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.045e-05/0.2768, allocations: 10.5 kB / 372.9 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.2768, allocations: 8.078 kB / 373 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.2768, allocations: 2.688 kB / 373 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.2786, allocations: 1.059 MB / 374 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.2788, allocations: 129.5 kB / 374.1 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.807e-05/0.2788, allocations: 8.594 kB / 374.1 MB, free: 18.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004051/0.2792, allocations: 66.2 kB / 374.2 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.2793, allocations: 44.67 kB / 374.3 MB, free: 18.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.87e-05/0.2794, allocations: 12.05 kB / 374.3 MB, free: 18.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.2795, allocations: 148.4 kB / 374.4 MB, free: 18.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2795, allocations: 0 / 374.4 MB, free: 18.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004642/0.28, allocations: 83.19 kB / 374.5 MB, free: 18.48 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001119/0.2801, allocations: 111.3 kB / 374.6 MB, free: 18.39 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009531/0.281, allocations: 399.1 kB / 375 MB, free: 18.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.281, allocations: 5.312 kB / 375 MB, free: 18.37 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000679/0.2817, allocations: 281.6 kB / 375.3 MB, free: 18.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006687/0.2824, allocations: 66.22 kB / 375.3 MB, free: 18.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004603/0.287, allocations: 1.74 MB / 377.1 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002058/0.2872, allocations: 0.7794 MB / 377.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.2874, allocations: 40.52 kB / 377.9 MB, free: 16.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.2875, allocations: 33.33 kB / 377.9 MB, free: 16.91 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2875, allocations: 1.438 kB / 377.9 MB, free: 16.91 MB / 302.1 MB Notification: Performance of Templates: time 0.007018/0.2946, allocations: 3.715 MB / 381.6 MB, free: 16.65 MB / 302.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