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.001153/0.001153, allocations: 105.6 kB / 17.06 MB, free: 6.012 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.001257/0.001257, allocations: 195 kB / 18 MB, free: 5.094 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.271/1.271, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009135/0.0009135, allocations: 47.94 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2644, allocations: 49.43 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003322/0.2678, allocations: 2.436 MB / 402.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.269, allocations: 0.7366 MB / 403.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001302/0.2692, allocations: 4 kB / 403.4 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001488/0.2693, allocations: 39.58 kB / 403.4 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.2696, allocations: 115 kB / 403.5 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003229/0.2699, allocations: 123.8 kB / 403.7 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003993/0.2703, allocations: 470.2 kB / 404.1 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001845/0.2705, allocations: 80.91 kB / 404.2 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002101/0.2707, allocations: 195.4 kB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.2709, allocations: 207.3 kB / 404.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.233e-05/0.271, allocations: 40 kB / 404.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.538e-05/0.2711, allocations: 36 kB / 404.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.597e-05/0.2711, allocations: 83.8 kB / 404.8 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001541/0.2713, allocations: 171.2 kB / 404.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003846/0.2717, allocations: 420.3 kB / 405.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2717, allocations: 0 / 405.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2717, allocations: 0 / 405.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.15e-05/0.2717, allocations: 0 / 405.3 MB, free: 3.691 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.001531/0.2733, allocations: 0.6861 MB / 406 MB, free: 2.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2733, allocations: 8.031 kB / 406 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.681e-05/0.2734, allocations: 62.72 kB / 406.1 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.792e-05/0.2735, allocations: 36.56 kB / 406.1 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003724/0.2739, allocations: 275.6 kB / 406.4 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.274, allocations: 84.08 kB / 406.5 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.531e-05/0.274, allocations: 31.91 kB / 406.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008577/0.2749, allocations: 375.2 kB / 406.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.2749, allocations: 4 kB / 406.9 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.609e-05/0.275, allocations: 11.98 kB / 406.9 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.275, allocations: 8 kB / 406.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001107/0.2761, allocations: 399.5 kB / 407.3 MB, free: 1.617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.2774, allocations: 0.9622 MB / 408.2 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000954/0.2783, allocations: 407.4 kB / 408.6 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005867/0.2789, allocations: 218.4 kB / 408.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.279, allocations: 0 / 408.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.279, allocations: 42.5 kB / 408.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.112e-06/0.279, allocations: 0 / 408.9 MB, free: 15.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.004598/0.2836, allocations: 2.316 MB / 411.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/0.2837, allocations: 114.8 kB / 411.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002055/0.2839, allocations: 203.2 kB / 411.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.642e-05/0.284, allocations: 33.7 kB / 411.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.2841, allocations: 144.6 kB / 411.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.2842, allocations: 145.9 kB / 411.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.2843, allocations: 70.11 kB / 411.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.2845, allocations: 338.8 kB / 412.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/0.2848, allocations: 108.8 kB / 412.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003304/0.2851, allocations: 169.4 kB / 412.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006047/0.2857, allocations: 294.1 kB / 412.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2858, allocations: 0 / 412.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007938/0.2866, allocations: 361 kB / 413.2 MB, free: 11.28 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.2866, allocations: 12.09 kB / 413.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.2866, allocations: 0 / 413.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.2866, allocations: 4 kB / 413.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006796/0.2873, allocations: 152.7 kB / 413.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.239e-05/0.2873, allocations: 4 kB / 413.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002275/0.2876, allocations: 23.97 kB / 413.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.833e-05/0.2876, allocations: 16 kB / 413.4 MB, free: 11.07 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.000151/0.2878, allocations: 153.7 kB / 413.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.825e-05/0.2879, allocations: 27.66 kB / 413.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.158e-05/0.2879, allocations: 33.52 kB / 413.6 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.2879, allocations: 8 kB / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.288, allocations: 0 / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.288, allocations: 0 / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/0.2902, allocations: 1.338 MB / 414.9 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.2902, allocations: 4 kB / 414.9 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008192/0.291, allocations: 171.9 kB / 415.1 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.291, allocations: 4 kB / 415.1 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.238e-05/0.2911, allocations: 15.94 kB / 415.1 MB, free: 9.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.2911, allocations: 3.984 kB / 415.1 MB, free: 9.215 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.2911, allocations: 8 kB / 415.1 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001843/0.293, allocations: 0.9526 MB / 416.1 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001438/0.2931, allocations: 128.8 kB / 416.2 MB, free: 8.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.15e-05/0.2932, allocations: 11.94 kB / 416.2 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004029/0.2936, allocations: 51.94 kB / 416.3 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.949e-05/0.2937, allocations: 39.89 kB / 416.3 MB, free: 7.969 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.35e-05/0.2937, allocations: 12 kB / 416.3 MB, free: 7.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001295/0.2939, allocations: 156.6 kB / 416.5 MB, free: 7.805 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2939, allocations: 0 / 416.5 MB, free: 7.805 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004668/0.2943, allocations: 88 kB / 416.6 MB, free: 7.719 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.002138/0.2965, allocations: 1.499 MB / 418.1 MB, free: 6.172 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009329/0.2974, allocations: 374.7 kB / 418.4 MB, free: 5.809 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.2974, allocations: 0 / 418.4 MB, free: 5.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006177/0.2981, allocations: 248 kB / 418.7 MB, free: 5.566 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007231/0.2988, allocations: 73.62 kB / 418.7 MB, free: 5.496 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007755/0.3066, allocations: 3.865 MB / 422.6 MB, free: 1.477 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000373/0.307, allocations: 0.7681 MB / 423.4 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001786/0.3072, allocations: 38.97 kB / 423.4 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001819/0.3073, allocations: 99.39 kB / 423.5 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3074, allocations: 4 kB / 423.5 MB, free: 0.543 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02869/0.336, allocations: 7.279 MB / 430.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.617/7.953, allocations: 16.03 kB / 430.8 MB, free: 9.379 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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) "" 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.c,elastoBacklash.d,elastoBacklash.flange_a.phi,elastoBacklash.flange_a.tau,elastoBacklash.flange_b.phi,elastoBacklash.flange_b.tau,elastoBacklash.lossPower,elastoBacklash.phi_nominal,elastoBacklash.phi_rel,elastoBacklash.phi_rel0,elastoBacklash.stateSelect,elastoBacklash.tau,elastoBacklash.useHeatPort,elastoBacklash.w_rel,elastoBacklash2.a_rel,elastoBacklash2.b,elastoBacklash2.c,elastoBacklash2.d,elastoBacklash2.flange_a.phi,elastoBacklash2.flange_a.tau,elastoBacklash2.flange_b.phi,elastoBacklash2.flange_b.tau,elastoBacklash2.lossPower,elastoBacklash2.phi_nominal,elastoBacklash2.phi_rel,elastoBacklash2.phi_rel0,elastoBacklash2.stateSelect,elastoBacklash2.tau,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.useHeatPort,springDamper.w_rel,time