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.001261/0.001261, allocations: 102 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 227.4 MB / 246.3 MB, free: 9.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 55.91 kB / 306.3 MB, free: 0.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.1001, allocations: 50.53 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003548/0.1037, allocations: 2.495 MB / 359.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.105, allocations: 0.7717 MB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.1051, allocations: 4 kB / 360.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001388/0.1052, allocations: 31.7 kB / 360.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001702/0.1054, allocations: 91.3 kB / 360.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.1057, allocations: 107.9 kB / 360.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003648/0.1061, allocations: 450.2 kB / 360.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.1062, allocations: 73.31 kB / 360.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.1064, allocations: 163.4 kB / 361 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.1066, allocations: 195.3 kB / 361.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.584e-05/0.1067, allocations: 20 kB / 361.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.952e-05/0.1067, allocations: 24 kB / 361.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.485e-05/0.1068, allocations: 71.72 kB / 361.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.107, allocations: 167.2 kB / 361.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003194/0.1073, allocations: 387 kB / 361.9 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.1073, allocations: 8 kB / 361.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1073, allocations: 3.938 kB / 361.9 MB, free: 9.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.953e-06/0.1073, allocations: 0 / 361.9 MB, free: 9.16 MB / 302.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.001461/0.1088, allocations: 0.6766 MB / 362.6 MB, free: 8.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.1089, allocations: 12.03 kB / 362.6 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.116e-05/0.1089, allocations: 70.67 kB / 362.7 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.4e-05/0.109, allocations: 36.55 kB / 362.7 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.1093, allocations: 267.6 kB / 363 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003626/0.1097, allocations: 128 kB / 363.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.689e-05/0.1097, allocations: 28 kB / 363.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008477/0.1106, allocations: 383.2 kB / 363.5 MB, free: 7.461 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.1106, allocations: 3.906 kB / 363.5 MB, free: 7.457 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.416e-05/0.1107, allocations: 12 kB / 363.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1107, allocations: 4 kB / 363.5 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.1118, allocations: 398.9 kB / 363.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.1131, allocations: 0.9659 MB / 364.9 MB, free: 6.027 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.1141, allocations: 411.5 kB / 365.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005639/0.1147, allocations: 218.4 kB / 365.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.1147, allocations: 4 kB / 365.5 MB, free: 5.371 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.1148, allocations: 38.56 kB / 365.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.433e-06/0.1148, allocations: 0 / 365.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.004508/0.1193, allocations: 2.32 MB / 367.8 MB, free: 2.742 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.444e-05/0.1193, allocations: 106.8 kB / 367.9 MB, free: 2.613 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.1196, allocations: 207.2 kB / 368.1 MB, free: 2.398 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.383e-05/0.1196, allocations: 33.7 kB / 368.2 MB, free: 2.359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.624e-05/0.1197, allocations: 152.6 kB / 368.3 MB, free: 2.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.886e-05/0.1198, allocations: 137.9 kB / 368.5 MB, free: 2.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.1199, allocations: 70.12 kB / 368.5 MB, free: 1.996 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.1201, allocations: 342.8 kB / 368.9 MB, free: 1.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003097/0.1204, allocations: 108.8 kB / 369 MB, free: 1.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003189/0.1207, allocations: 169.5 kB / 369.1 MB, free: 1.363 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006141/0.1213, allocations: 291.1 kB / 369.4 MB, free: 1.062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1214, allocations: 4 kB / 369.4 MB, free: 1.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007806/0.1221, allocations: 371.7 kB / 369.8 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.1222, allocations: 7.984 kB / 369.8 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.1222, allocations: 0 / 369.8 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.1222, allocations: 4 kB / 369.8 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006688/0.1229, allocations: 147.9 kB / 369.9 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.1229, allocations: 4 kB / 369.9 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.1231, allocations: 23.98 kB / 370 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.396e-05/0.1231, allocations: 16 kB / 370 MB, free: 0.4961 MB / 302.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.0001565/0.1233, allocations: 158.6 kB / 370.1 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.433e-05/0.1234, allocations: 31.64 kB / 370.2 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.196e-05/0.1235, allocations: 33.53 kB / 370.2 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.1235, allocations: 8 kB / 370.2 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1235, allocations: 0 / 370.2 MB, free: 264 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1235, allocations: 3.984 kB / 370.2 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1642/0.2877, allocations: 1.31 MB / 371.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.2877, allocations: 4.172 kB / 371.5 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008579/0.2886, allocations: 173.1 kB / 371.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.149e-05/0.2886, allocations: 6.719 kB / 371.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.639e-05/0.2886, allocations: 13.69 kB / 371.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.067e-06/0.2887, allocations: 5.141 kB / 371.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.2887, allocations: 2.281 kB / 371.7 MB, free: 19.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001799/0.2905, allocations: 0.9487 MB / 372.7 MB, free: 19.47 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.2906, allocations: 130.9 kB / 372.8 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.36e-05/0.2907, allocations: 10.7 kB / 372.8 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004045/0.2911, allocations: 41.73 kB / 372.9 MB, free: 19.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.2912, allocations: 50.27 kB / 372.9 MB, free: 19.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.176e-05/0.2912, allocations: 11.16 kB / 372.9 MB, free: 19.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.2913, allocations: 156.2 kB / 373.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2913, allocations: 3.719 kB / 373.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004375/0.2918, allocations: 80 kB / 373.1 MB, free: 19.3 MB / 302.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.001974/0.2938, allocations: 1.499 MB / 374.6 MB, free: 18.38 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009527/0.2947, allocations: 366.5 kB / 375 MB, free: 18.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2947, allocations: 0 / 375 MB, free: 18.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006174/0.2954, allocations: 246.2 kB / 375.2 MB, free: 18.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007288/0.2961, allocations: 65.36 kB / 375.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007094/0.3032, allocations: 3.982 MB / 379.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.3034, allocations: 0.767 MB / 380.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001739/0.3036, allocations: 46.2 kB / 380.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.3038, allocations: 94.11 kB / 380.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3038, allocations: 1.062 kB / 380.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3624/0.6662, allocations: 6.525 MB / 386.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001391/0.6664, allocations: 204.1 kB / 386.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.534, allocations: 6.922 kB / 386.9 MB, free: 13.11 MB / 302.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