Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 112.5 kB / 17.06 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0014/0.0014, allocations: 200.1 kB / 18.01 MB, free: 5.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.06 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001059/0.001059, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2732, allocations: 49.45 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003477/0.2767, allocations: 2.445 MB / 402.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001345/0.2781, allocations: 0.7362 MB / 403.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.2782, allocations: 4 kB / 403.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001479/0.2784, allocations: 43.52 kB / 403.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.2786, allocations: 111.1 kB / 403.6 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003159/0.2789, allocations: 123.8 kB / 403.7 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000401/0.2793, allocations: 466.2 kB / 404.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.2795, allocations: 84.91 kB / 404.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.2798, allocations: 187.4 kB / 404.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002291/0.28, allocations: 215.3 kB / 404.6 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.606e-05/0.2801, allocations: 36 kB / 404.6 MB, free: 4.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.486e-05/0.2802, allocations: 36 kB / 404.7 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.496e-05/0.2802, allocations: 83.75 kB / 404.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.2804, allocations: 175.3 kB / 404.9 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004304/0.2808, allocations: 429.3 kB / 405.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.2809, allocations: 0 / 405.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2809, allocations: 0 / 405.4 MB, free: 3.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.2809, allocations: 0 / 405.4 MB, free: 3.66 MB / 318.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.001537/0.2824, allocations: 0.6859 MB / 406 MB, free: 2.926 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.2825, allocations: 8.031 kB / 406 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.404e-05/0.2826, allocations: 62.73 kB / 406.1 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.021e-05/0.2827, allocations: 36.75 kB / 406.1 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004123/0.2831, allocations: 279.6 kB / 406.4 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001043/0.2832, allocations: 84.08 kB / 406.5 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.285e-05/0.2833, allocations: 24 kB / 406.5 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008806/0.2842, allocations: 383.2 kB / 406.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.2842, allocations: 7.953 kB / 406.9 MB, free: 1.988 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.333e-05/0.2842, allocations: 8 kB / 406.9 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.2842, allocations: 12 kB / 406.9 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.2854, allocations: 387.6 kB / 407.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.2867, allocations: 0.9741 MB / 408.3 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.2878, allocations: 403.6 kB / 408.7 MB, free: 140 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006137/0.2884, allocations: 218.4 kB / 408.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.38e-05/0.2884, allocations: 4 kB / 408.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.2885, allocations: 38.56 kB / 408.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.583e-06/0.2885, allocations: 0 / 408.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.004895/0.2934, allocations: 2.325 MB / 411.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.041e-05/0.2934, allocations: 106.8 kB / 411.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002009/0.2937, allocations: 207.2 kB / 411.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.222e-05/0.2937, allocations: 33.7 kB / 411.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.2938, allocations: 156.8 kB / 411.7 MB, free: 12.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.2939, allocations: 142.7 kB / 411.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/0.2941, allocations: 70.12 kB / 412 MB, free: 12.52 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.2942, allocations: 338.8 kB / 412.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/0.2945, allocations: 112.8 kB / 412.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003451/0.2949, allocations: 165.5 kB / 412.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006487/0.2955, allocations: 290.1 kB / 412.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.2956, allocations: 4 kB / 412.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008598/0.2964, allocations: 369.1 kB / 413.2 MB, free: 11.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.2965, allocations: 6.188 kB / 413.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.828e-06/0.2965, allocations: 3.984 kB / 413.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.2965, allocations: 4 kB / 413.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006957/0.2972, allocations: 147.9 kB / 413.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.2972, allocations: 11.94 kB / 413.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002464/0.2975, allocations: 19.98 kB / 413.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.327e-05/0.2975, allocations: 16 kB / 413.4 MB, free: 11.02 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.0001643/0.2977, allocations: 145.7 kB / 413.5 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.2978, allocations: 31.73 kB / 413.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.987e-05/0.2979, allocations: 41.52 kB / 413.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.2979, allocations: 4 kB / 413.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.2979, allocations: 0 / 413.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.2979, allocations: 3.984 kB / 413.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002487/0.3004, allocations: 1.336 MB / 415 MB, free: 9.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.375e-06/0.3004, allocations: 4 kB / 415 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008446/0.3013, allocations: 164 kB / 415.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.877e-06/0.3013, allocations: 4 kB / 415.1 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/0.3013, allocations: 20.02 kB / 415.2 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.3014, allocations: 7.938 kB / 415.2 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3014, allocations: 3.938 kB / 415.2 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001985/0.3034, allocations: 0.9566 MB / 416.1 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.3035, allocations: 129 kB / 416.2 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.918e-05/0.3036, allocations: 15.92 kB / 416.3 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004555/0.3041, allocations: 43.95 kB / 416.3 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.3042, allocations: 39.95 kB / 416.3 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.3042, allocations: 15.98 kB / 416.4 MB, free: 7.902 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000153/0.3044, allocations: 152.6 kB / 416.5 MB, free: 7.754 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3044, allocations: 4 kB / 416.5 MB, free: 7.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004934/0.3049, allocations: 76 kB / 416.6 MB, free: 7.676 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.002405/0.3073, allocations: 1.512 MB / 418.1 MB, free: 6.113 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00114/0.3084, allocations: 377.5 kB / 418.5 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3085, allocations: 0 / 418.5 MB, free: 5.75 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006917/0.3092, allocations: 239.7 kB / 418.7 MB, free: 5.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007972/0.31, allocations: 65.66 kB / 418.8 MB, free: 5.453 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008618/0.3186, allocations: 3.88 MB / 422.6 MB, free: 1.414 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003692/0.319, allocations: 0.7721 MB / 423.4 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002016/0.3192, allocations: 38.95 kB / 423.5 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/0.3194, allocations: 99.39 kB / 423.6 MB, free: 492 kB / 334.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3195, allocations: 0 / 423.6 MB, free: 492 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02784/0.3473, allocations: 7.125 MB / 430.7 MB, free: 9.484 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.245/8.592, allocations: 4.984 kB / 430.7 MB, free: 9.484 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches