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.001606/0.001606, allocations: 110.8 kB / 17.06 MB, free: 5.977 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.001847/0.001847, allocations: 200 kB / 18.01 MB, free: 5.059 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.289/1.289, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 47.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.24, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003404/0.2435, allocations: 2.432 MB / 402.7 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.2447, allocations: 0.7405 MB / 403.4 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001462/0.2449, allocations: 7.938 kB / 403.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.2451, allocations: 35.59 kB / 403.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002081/0.2453, allocations: 111.1 kB / 403.5 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003561/0.2457, allocations: 127.8 kB / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004706/0.2461, allocations: 466.2 kB / 404.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/0.2464, allocations: 80.91 kB / 404.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.2466, allocations: 191.4 kB / 404.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.2468, allocations: 203.2 kB / 404.6 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.586e-05/0.2469, allocations: 44 kB / 404.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.606e-05/0.2469, allocations: 36 kB / 404.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.413e-05/0.247, allocations: 91.72 kB / 404.8 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.2472, allocations: 171.3 kB / 404.9 MB, free: 4.094 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003951/0.2476, allocations: 416.3 kB / 405.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.2476, allocations: 0 / 405.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2476, allocations: 0 / 405.3 MB, free: 3.688 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.2476, allocations: 0 / 405.3 MB, free: 3.688 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.00155/0.2492, allocations: 0.6892 MB / 406 MB, free: 2.953 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.2492, allocations: 8.031 kB / 406 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.267e-05/0.2493, allocations: 62.73 kB / 406.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.108e-05/0.2494, allocations: 36.56 kB / 406.1 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003838/0.2498, allocations: 275.5 kB / 406.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001098/0.2499, allocations: 84.08 kB / 406.5 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.495e-05/0.25, allocations: 39.89 kB / 406.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009023/0.2509, allocations: 371.2 kB / 406.9 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.919e-05/0.2509, allocations: 0 / 406.9 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/0.251, allocations: 16 kB / 406.9 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.251, allocations: 11.98 kB / 406.9 MB, free: 1.996 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.2522, allocations: 396.8 kB / 407.3 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001455/0.2536, allocations: 0.9582 MB / 408.3 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.2547, allocations: 407.5 kB / 408.6 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006752/0.2554, allocations: 214.4 kB / 408.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.73e-05/0.2555, allocations: 7.984 kB / 408.9 MB, free: 15.94 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.2555, allocations: 46.48 kB / 408.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 3.858e-06/0.2555, allocations: 0 / 408.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.005033/0.2606, allocations: 2.312 MB / 411.2 MB, free: 13.31 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.388e-05/0.2607, allocations: 106.8 kB / 411.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002448/0.2609, allocations: 203.2 kB / 411.5 MB, free: 12.97 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.834e-05/0.261, allocations: 37.7 kB / 411.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.854e-05/0.2611, allocations: 144.6 kB / 411.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00011/0.2612, allocations: 141.9 kB / 411.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.2613, allocations: 74.11 kB / 411.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.2615, allocations: 338.8 kB / 412.2 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000336/0.2618, allocations: 112.8 kB / 412.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003281/0.2622, allocations: 170.4 kB / 412.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006513/0.2628, allocations: 288 kB / 412.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2628, allocations: 0 / 412.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008662/0.2637, allocations: 367 kB / 413.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.719e-05/0.2638, allocations: 8 kB / 413.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.2638, allocations: 3.938 kB / 413.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.2638, allocations: 8.094 kB / 413.2 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007074/0.2645, allocations: 151.8 kB / 413.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/0.2645, allocations: 4 kB / 413.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/0.2648, allocations: 23.97 kB / 413.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.2648, allocations: 19.94 kB / 413.4 MB, free: 11.06 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.0001726/0.265, allocations: 145.7 kB / 413.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.2651, allocations: 31.66 kB / 413.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.343e-05/0.2652, allocations: 33.52 kB / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.844e-06/0.2652, allocations: 8 kB / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2652, allocations: 0 / 413.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.2652, allocations: 3.984 kB / 413.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002448/0.2677, allocations: 1.323 MB / 414.9 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.2677, allocations: 4 kB / 414.9 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008459/0.2686, allocations: 171.9 kB / 415.1 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.2686, allocations: 8 kB / 415.1 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.235e-05/0.2686, allocations: 23.91 kB / 415.1 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2687, allocations: 0 / 415.1 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2687, allocations: 4 kB / 415.1 MB, free: 9.207 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00206/0.2707, allocations: 0.9565 MB / 416.1 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001651/0.2709, allocations: 128.8 kB / 416.2 MB, free: 8.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.305e-05/0.271, allocations: 11.94 kB / 416.2 MB, free: 8.055 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004207/0.2714, allocations: 51.94 kB / 416.3 MB, free: 8.004 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.2715, allocations: 39.89 kB / 416.3 MB, free: 7.965 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.2716, allocations: 15.98 kB / 416.3 MB, free: 7.949 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001291/0.2717, allocations: 152.6 kB / 416.5 MB, free: 7.801 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2717, allocations: 3.938 kB / 416.5 MB, free: 7.797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004677/0.2722, allocations: 84 kB / 416.6 MB, free: 7.715 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.002357/0.2745, allocations: 1.496 MB / 418.1 MB, free: 6.168 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001055/0.2756, allocations: 375.8 kB / 418.4 MB, free: 5.801 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.2756, allocations: 0 / 418.4 MB, free: 5.801 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006816/0.2763, allocations: 244.1 kB / 418.7 MB, free: 5.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007533/0.2771, allocations: 72.05 kB / 418.7 MB, free: 5.492 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00803/0.2851, allocations: 3.871 MB / 422.6 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.2855, allocations: 0.7681 MB / 423.4 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001709/0.2857, allocations: 38.95 kB / 423.4 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001993/0.2859, allocations: 99.41 kB / 423.5 MB, free: 0.543 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2859, allocations: 0 / 423.5 MB, free: 0.543 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02825/0.3141, allocations: 7.274 MB / 430.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.421/8.736, allocations: 13.25 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