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.001315/0.001315, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001517/0.001517, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 55.91 kB / 358.2 MB, free: 13.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2839, allocations: 50.54 MB / 408.7 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.00368/0.2877, allocations: 2.463 MB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001527/0.2892, allocations: 0.764 MB / 412 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002861/0.2895, allocations: 7.938 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002055/0.2898, allocations: 39.58 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003375/0.2901, allocations: 107.1 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004333/0.2906, allocations: 123.8 kB / 412.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000536/0.2911, allocations: 466.2 kB / 412.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/0.2913, allocations: 88.88 kB / 412.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003033/0.2916, allocations: 187.4 kB / 413 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003036/0.292, allocations: 215.2 kB / 413.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.896e-05/0.292, allocations: 40 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.835e-05/0.2921, allocations: 36 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.221e-05/0.2922, allocations: 83.73 kB / 413.3 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.2924, allocations: 171.3 kB / 413.5 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004697/0.2929, allocations: 420.3 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2929, allocations: 0 / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2929, allocations: 0 / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.2929, allocations: 0 / 413.9 MB, free: 12.39 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.001615/0.2946, allocations: 0.6822 MB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.2946, allocations: 12.03 kB / 414.6 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.898e-05/0.2947, allocations: 62.73 kB / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.743e-05/0.2948, allocations: 32.56 kB / 414.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.2953, allocations: 280.6 kB / 415 MB, free: 11.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.2954, allocations: 88.08 kB / 415 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.558e-05/0.2955, allocations: 27.91 kB / 415.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009278/0.2964, allocations: 379.2 kB / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.2964, allocations: 0 / 415.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.526e-05/0.2965, allocations: 12 kB / 415.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.2965, allocations: 8 kB / 415.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001096/0.2976, allocations: 391.5 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.299, allocations: 0.9699 MB / 416.8 MB, free: 9.297 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009706/0.3, allocations: 407.5 kB / 417.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005578/0.3005, allocations: 210.4 kB / 417.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.713e-05/0.3006, allocations: 7.984 kB / 417.4 MB, free: 8.648 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.3006, allocations: 42.5 kB / 417.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.763e-06/0.3006, allocations: 0 / 417.5 MB, free: 8.598 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.004507/0.3051, allocations: 2.316 MB / 419.8 MB, free: 6.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.313e-05/0.3052, allocations: 111.8 kB / 419.9 MB, free: 5.887 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002049/0.3054, allocations: 199.2 kB / 420.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.297e-05/0.3055, allocations: 37.7 kB / 420.1 MB, free: 5.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.097e-05/0.3056, allocations: 148.6 kB / 420.3 MB, free: 5.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.3057, allocations: 137.9 kB / 420.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.3058, allocations: 74.12 kB / 420.5 MB, free: 5.277 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.306, allocations: 338.8 kB / 420.8 MB, free: 4.938 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/0.3063, allocations: 112.8 kB / 420.9 MB, free: 4.824 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/0.3066, allocations: 161.5 kB / 421.1 MB, free: 4.652 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005953/0.3072, allocations: 288.2 kB / 421.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3072, allocations: 3.938 kB / 421.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007751/0.308, allocations: 372.6 kB / 421.7 MB, free: 3.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.308, allocations: 10.81 kB / 421.7 MB, free: 3.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.308, allocations: 3.938 kB / 421.7 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.3081, allocations: 4 kB / 421.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006656/0.3087, allocations: 147.8 kB / 421.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.3087, allocations: 11.97 kB / 421.9 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002279/0.309, allocations: 23.98 kB / 421.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.309, allocations: 12 kB / 421.9 MB, free: 3.777 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.0001412/0.3092, allocations: 157.7 kB / 422.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.3093, allocations: 35.56 kB / 422.1 MB, free: 3.578 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.476e-05/0.3093, allocations: 33.52 kB / 422.2 MB, free: 3.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.3094, allocations: 4 kB / 422.2 MB, free: 3.543 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3094, allocations: 4 kB / 422.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3094, allocations: 3.984 kB / 422.2 MB, free: 3.535 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002167/0.3115, allocations: 1.326 MB / 423.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.3116, allocations: 4 kB / 423.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008138/0.3124, allocations: 164 kB / 423.7 MB, free: 1.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.3124, allocations: 4 kB / 423.7 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/0.3124, allocations: 15.92 kB / 423.7 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.3125, allocations: 4 kB / 423.7 MB, free: 1.926 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3125, allocations: 8 kB / 423.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.3143, allocations: 0.9438 MB / 424.6 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.3144, allocations: 132.7 kB / 424.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.5e-05/0.3145, allocations: 19.92 kB / 424.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003982/0.3149, allocations: 47.95 kB / 424.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.421e-05/0.315, allocations: 39.89 kB / 424.9 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.315, allocations: 15.98 kB / 424.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000128/0.3152, allocations: 148.6 kB / 425 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3152, allocations: 3.938 kB / 425 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004409/0.3156, allocations: 84 kB / 425.1 MB, free: 444 kB / 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.002035/0.3177, allocations: 1.502 MB / 426.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009064/0.3186, allocations: 363.7 kB / 427 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3186, allocations: 0 / 427 MB, free: 14.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006055/0.3192, allocations: 252.2 kB / 427.2 MB, free: 14.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006783/0.3199, allocations: 68.55 kB / 427.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007487/0.3274, allocations: 3.853 MB / 431.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003639/0.3278, allocations: 0.7682 MB / 431.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001755/0.328, allocations: 38.95 kB / 431.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.3282, allocations: 95.41 kB / 432 MB, free: 9.273 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3282, allocations: 4 kB / 432 MB, free: 9.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03027/0.3585, allocations: 7.296 MB / 439.3 MB, free: 2.098 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.745/8.103, allocations: 14.8 kB / 439.4 MB, free: 2.086 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.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_trunk_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