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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001293/0.001293, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001489/0.001489, allocations: 199.9 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 64.08 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.248, allocations: 50.54 MB / 408.7 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003777/0.2518, allocations: 2.459 MB / 411.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.2532, allocations: 0.7752 MB / 412 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000124/0.2534, allocations: 4 kB / 412 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.2536, allocations: 39.53 kB / 412 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002118/0.2538, allocations: 107.1 kB / 412.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003435/0.2541, allocations: 131 kB / 412.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004734/0.2546, allocations: 462.2 kB / 412.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.2548, allocations: 84.88 kB / 412.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002529/0.2551, allocations: 187.4 kB / 413 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002477/0.2553, allocations: 207.3 kB / 413.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.259e-05/0.2554, allocations: 36 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.717e-05/0.2555, allocations: 40 kB / 413.2 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.494e-05/0.2556, allocations: 87.72 kB / 413.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001774/0.2558, allocations: 179.3 kB / 413.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004637/0.2562, allocations: 413.3 kB / 413.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2563, allocations: 0 / 413.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2563, allocations: 0 / 413.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.2563, allocations: 0 / 413.9 MB, free: 12.5 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.001645/0.2579, allocations: 0.6859 MB / 414.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.258, allocations: 8.031 kB / 414.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.724e-05/0.2581, allocations: 66.72 kB / 414.7 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.314e-05/0.2582, allocations: 32.75 kB / 414.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004521/0.2586, allocations: 272.7 kB / 415 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.2588, allocations: 88.08 kB / 415.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.221e-05/0.2588, allocations: 36 kB / 415.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009073/0.2598, allocations: 383.1 kB / 415.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.2598, allocations: 4 kB / 415.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.786e-05/0.2598, allocations: 12 kB / 415.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.2599, allocations: 4 kB / 415.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.261, allocations: 398.9 kB / 415.9 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001441/0.2625, allocations: 0.9739 MB / 416.8 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.2635, allocations: 403.6 kB / 417.2 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005834/0.2641, allocations: 214.4 kB / 417.4 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.2641, allocations: 15.98 kB / 417.5 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.2642, allocations: 34.56 kB / 417.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.853e-06/0.2642, allocations: 0 / 417.5 MB, free: 8.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.004799/0.269, allocations: 2.318 MB / 419.8 MB, free: 6.109 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.563e-05/0.2691, allocations: 111.1 kB / 419.9 MB, free: 5.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000237/0.2693, allocations: 211.2 kB / 420.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.748e-05/0.2694, allocations: 29.7 kB / 420.2 MB, free: 5.727 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.2695, allocations: 148.8 kB / 420.3 MB, free: 5.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.2696, allocations: 150.7 kB / 420.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001419/0.2698, allocations: 78.06 kB / 420.5 MB, free: 5.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.2699, allocations: 334.8 kB / 420.9 MB, free: 5.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003091/0.2703, allocations: 108.8 kB / 421 MB, free: 4.902 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003282/0.2706, allocations: 169.4 kB / 421.1 MB, free: 4.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006613/0.2713, allocations: 300.1 kB / 421.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2713, allocations: 0 / 421.4 MB, free: 4.418 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007901/0.2721, allocations: 365.1 kB / 421.8 MB, free: 4.055 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.2721, allocations: 4.094 kB / 421.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.2721, allocations: 8 kB / 421.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.2721, allocations: 4 kB / 421.8 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006806/0.2728, allocations: 147.8 kB / 421.9 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.2728, allocations: 0 / 421.9 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002331/0.2731, allocations: 31.97 kB / 422 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.954e-05/0.2731, allocations: 8 kB / 422 MB, free: 3.855 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.0001678/0.2733, allocations: 149.7 kB / 422.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.2734, allocations: 35.75 kB / 422.2 MB, free: 3.664 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.5e-05/0.2735, allocations: 33.52 kB / 422.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.506e-06/0.2735, allocations: 4 kB / 422.2 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.2735, allocations: 3.938 kB / 422.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.2735, allocations: 4 kB / 422.2 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002327/0.2758, allocations: 1.315 MB / 423.5 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.2758, allocations: 0 / 423.5 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008301/0.2767, allocations: 172 kB / 423.7 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.704e-06/0.2767, allocations: 4 kB / 423.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.2767, allocations: 15.94 kB / 423.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.692e-06/0.2767, allocations: 7.984 kB / 423.7 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.2768, allocations: 11.94 kB / 423.7 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001913/0.2787, allocations: 0.9518 MB / 424.7 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001774/0.2789, allocations: 132.9 kB / 424.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.265e-05/0.2789, allocations: 11.94 kB / 424.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004128/0.2794, allocations: 55.88 kB / 424.9 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.2795, allocations: 35.95 kB / 424.9 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.696e-05/0.2795, allocations: 15.94 kB / 424.9 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001415/0.2796, allocations: 152.7 kB / 425.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2797, allocations: 3.938 kB / 425.1 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004678/0.2801, allocations: 84 kB / 425.2 MB, free: 0.5117 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.002268/0.2824, allocations: 1.49 MB / 426.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.2834, allocations: 372.2 kB / 427 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.2834, allocations: 0 / 427 MB, free: 14.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006423/0.2841, allocations: 252 kB / 427.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00072/0.2848, allocations: 66.67 kB / 427.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008166/0.293, allocations: 3.873 MB / 431.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004159/0.2934, allocations: 0.7643 MB / 432 MB, free: 9.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001909/0.2936, allocations: 38.95 kB / 432 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/0.2939, allocations: 103.4 kB / 432.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of SimCode: time 7.92e-07/0.2939, allocations: 0 / 432.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03391/0.3278, allocations: 7.115 MB / 439.2 MB, free: 2.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.58/8.907, allocations: 16.91 kB / 439.2 MB, free: 2.332 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches