Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009482/0.0009481, allocations: 195.1 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.193/1.193, allocations: 226.5 MB / 244.7 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007656/0.0007656, allocations: 99.03 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002208/0.000221, allocations: 11.98 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.1708, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.001618/0.1724, allocations: 2.063 MB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008076/0.1732, allocations: 0.7255 MB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.538e-05/0.1733, allocations: 4 kB / 410.9 MB, free: 24.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.002e-05/0.1734, allocations: 32.95 kB / 411 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.1736, allocations: 92.5 kB / 411 MB, free: 24.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.1738, allocations: 92.95 kB / 411.1 MB, free: 24.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002499/0.1741, allocations: 423.4 kB / 411.5 MB, free: 24.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001273/0.1742, allocations: 65.36 kB / 411.6 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.1744, allocations: 163.1 kB / 411.8 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001325/0.1745, allocations: 187.3 kB / 412 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.927e-05/0.1746, allocations: 20 kB / 412 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.606e-05/0.1746, allocations: 20 kB / 412 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.382e-05/0.1747, allocations: 67.73 kB / 412.1 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001048/0.1748, allocations: 177.1 kB / 412.2 MB, free: 23.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001708/0.1749, allocations: 292.4 kB / 412.5 MB, free: 23.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1749, allocations: 0 / 412.5 MB, free: 23.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.175, allocations: 0 / 412.5 MB, free: 23.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.175, allocations: 0 / 412.5 MB, free: 23.28 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.001211/0.1762, allocations: 0.6746 MB / 413.2 MB, free: 22.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.352e-05/0.1762, allocations: 12.02 kB / 413.2 MB, free: 22.55 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.633e-05/0.1763, allocations: 62.73 kB / 413.3 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.372e-05/0.1763, allocations: 32.56 kB / 413.3 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.1766, allocations: 275.5 kB / 413.6 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003142/0.1769, allocations: 132 kB / 413.7 MB, free: 22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.647e-05/0.177, allocations: 28 kB / 413.7 MB, free: 21.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007729/0.1777, allocations: 407.2 kB / 414.1 MB, free: 21.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.1778, allocations: 11.89 kB / 414.1 MB, free: 21.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.898e-05/0.1778, allocations: 8 kB / 414.1 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.1778, allocations: 8 kB / 414.1 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.1789, allocations: 466.9 kB / 414.6 MB, free: 21.08 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000919/0.1798, allocations: 0.9696 MB / 415.6 MB, free: 20.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009165/0.1807, allocations: 455.5 kB / 416 MB, free: 19.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005402/0.1813, allocations: 250.4 kB / 416.3 MB, free: 19.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.1813, allocations: 8 kB / 416.3 MB, free: 19.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.249e-05/0.1813, allocations: 38.5 kB / 416.3 MB, free: 19.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 1.423e-06/0.1813, allocations: 4 kB / 416.3 MB, free: 19.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.003926/0.1853, allocations: 2.509 MB / 418.8 MB, free: 16.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.415e-05/0.1853, allocations: 110.8 kB / 418.9 MB, free: 16.36 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000126/0.1854, allocations: 207.1 kB / 419.1 MB, free: 16.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/0.1855, allocations: 29.7 kB / 419.2 MB, free: 16.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.612e-05/0.1855, allocations: 144.7 kB / 419.3 MB, free: 15.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.005e-05/0.1856, allocations: 141.9 kB / 419.4 MB, free: 15.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.078e-05/0.1856, allocations: 8 kB / 419.4 MB, free: 15.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.423e-05/0.1857, allocations: 346.8 kB / 419.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002629/0.1859, allocations: 112.8 kB / 419.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000267/0.1862, allocations: 165.5 kB / 420.1 MB, free: 15.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005258/0.1867, allocations: 303.5 kB / 420.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1868, allocations: 4 kB / 420.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006522/0.1874, allocations: 380.2 kB / 420.7 MB, free: 14.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.1874, allocations: 7.984 kB / 420.7 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.1874, allocations: 4 kB / 420.7 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.1875, allocations: 4 kB / 420.7 MB, free: 14.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006303/0.1881, allocations: 171.8 kB / 420.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.1881, allocations: 7.984 kB / 420.9 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002111/0.1883, allocations: 23.98 kB / 420.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.1884, allocations: 19.94 kB / 421 MB, free: 14.26 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.481e-05/0.1885, allocations: 149.7 kB / 421.1 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-05/0.1885, allocations: 35.62 kB / 421.1 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.078e-05/0.1886, allocations: 29.53 kB / 421.2 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.1886, allocations: 8 kB / 421.2 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1886, allocations: 0 / 421.2 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.1886, allocations: 3.984 kB / 421.2 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001827/0.1905, allocations: 1.385 MB / 422.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.1905, allocations: 4.188 kB / 422.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007862/0.1913, allocations: 199.8 kB / 422.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.1913, allocations: 11.98 kB / 422.8 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/0.1913, allocations: 15.94 kB / 422.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.359e-06/0.1913, allocations: 8 kB / 422.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1913, allocations: 0 / 422.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.1931, allocations: 1.05 MB / 423.9 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.903e-05/0.1932, allocations: 132.8 kB / 424 MB, free: 11.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.284e-05/0.1932, allocations: 11.94 kB / 424 MB, free: 11.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000397/0.1936, allocations: 59.95 kB / 424.1 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.246e-05/0.1937, allocations: 43.88 kB / 424.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.302e-05/0.1937, allocations: 15.98 kB / 424.1 MB, free: 10.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.017e-05/0.1938, allocations: 156.5 kB / 424.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1938, allocations: 0 / 424.3 MB, free: 10.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003664/0.1942, allocations: 84 kB / 424.3 MB, free: 10.71 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 (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.001844/0.1961, allocations: 1.602 MB / 425.9 MB, free: 9.059 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008354/0.1969, allocations: 407.5 kB / 426.3 MB, free: 8.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1969, allocations: 0 / 426.3 MB, free: 8.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005864/0.1975, allocations: 284 kB / 426.6 MB, free: 8.383 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000652/0.1982, allocations: 52.64 kB / 426.7 MB, free: 8.332 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005857/0.204, allocations: 2.775 MB / 429.4 MB, free: 5.469 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000156/0.2042, allocations: 0.7723 MB / 430.2 MB, free: 4.668 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.2044, allocations: 99.39 kB / 430.3 MB, free: 4.574 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2044, allocations: 4 kB / 430.3 MB, free: 4.57 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.573/2.778, allocations: 4.354 MB / 434.7 MB, free: 212 kB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,elastoBacklash.phi_rel,elastoBacklash.w_rel,springDamper.phi_rel,springDamper.w_rel Variables in the result:der(elastoBacklash.phi_rel),der(elastoBacklash.w_rel),der(elastoBacklash2.phi_rel),der(elastoBacklash2.w_rel),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),der(springDamper.phi_rel),der(springDamper.w_rel),elastoBacklash.a_rel,elastoBacklash.b,elastoBacklash.bMax,elastoBacklash.bMin,elastoBacklash.c,elastoBacklash.d,elastoBacklash.flange_a.phi,elastoBacklash.flange_a.tau,elastoBacklash.flange_b.phi,elastoBacklash.flange_b.tau,elastoBacklash.lossPower,elastoBacklash.phi_diff,elastoBacklash.phi_nominal,elastoBacklash.phi_rel,elastoBacklash.phi_rel0,elastoBacklash.stateSelect,elastoBacklash.tau,elastoBacklash.tau_c,elastoBacklash.tau_d,elastoBacklash.useHeatPort,elastoBacklash.w_rel,elastoBacklash2.a_rel,elastoBacklash2.b,elastoBacklash2.bMax,elastoBacklash2.bMin,elastoBacklash2.c,elastoBacklash2.d,elastoBacklash2.flange_a.phi,elastoBacklash2.flange_a.tau,elastoBacklash2.flange_b.phi,elastoBacklash2.flange_b.tau,elastoBacklash2.lossPower,elastoBacklash2.phi_diff,elastoBacklash2.phi_nominal,elastoBacklash2.phi_rel,elastoBacklash2.phi_rel0,elastoBacklash2.stateSelect,elastoBacklash2.tau,elastoBacklash2.tau_c,elastoBacklash2.tau_d,elastoBacklash2.useHeatPort,elastoBacklash2.w_rel,fixed1.flange.phi,fixed1.flange.tau,fixed1.phi0,fixed2.flange.phi,fixed2.flange.tau,fixed2.phi0,fixed3.flange.phi,fixed3.flange.tau,fixed3.phi0,inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,springDamper.a_rel,springDamper.c,springDamper.d,springDamper.flange_a.phi,springDamper.flange_a.tau,springDamper.flange_b.phi,springDamper.flange_b.tau,springDamper.lossPower,springDamper.phi_nominal,springDamper.phi_rel,springDamper.phi_rel0,springDamper.stateSelect,springDamper.tau,springDamper.tau_c,springDamper.tau_d,springDamper.useHeatPort,springDamper.w_rel,time