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.001168/0.001168, allocations: 109.1 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001062/0.001062, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 60.48 kB / 306.6 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0943/0.09558, allocations: 50.52 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003552/0.09916, allocations: 2.503 MB / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001258/0.1004, allocations: 0.7678 MB / 360.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001092/0.1006, allocations: 4 kB / 360.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.1007, allocations: 35.7 kB / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001782/0.1009, allocations: 95.23 kB / 360.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003953/0.1013, allocations: 115.5 kB / 360.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003843/0.1017, allocations: 454.3 kB / 361 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001773/0.1019, allocations: 92.84 kB / 361.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002421/0.1021, allocations: 187.4 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.1023, allocations: 203.3 kB / 361.5 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.071e-05/0.1024, allocations: 40 kB / 361.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.714e-05/0.1025, allocations: 40 kB / 361.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.593e-05/0.1025, allocations: 87.72 kB / 361.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.1027, allocations: 175.2 kB / 361.8 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00038/0.1031, allocations: 410.9 kB / 362.2 MB, free: 9.137 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1031, allocations: 0 / 362.2 MB, free: 9.137 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1031, allocations: 0 / 362.2 MB, free: 9.137 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.952e-06/0.1031, allocations: 0 / 362.2 MB, free: 9.137 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.001479/0.1046, allocations: 0.6822 MB / 362.9 MB, free: 8.406 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.1046, allocations: 8.031 kB / 362.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.779e-05/0.1047, allocations: 70.66 kB / 363 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.13e-05/0.1048, allocations: 36.56 kB / 363 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003108/0.1051, allocations: 271.5 kB / 363.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004189/0.1055, allocations: 128 kB / 363.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.569e-05/0.1056, allocations: 24 kB / 363.5 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000895/0.1065, allocations: 383.2 kB / 363.8 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.1065, allocations: 7.906 kB / 363.8 MB, free: 7.426 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.242e-05/0.1066, allocations: 8 kB / 363.8 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.198e-06/0.1066, allocations: 8 kB / 363.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.1078, allocations: 391.6 kB / 364.2 MB, free: 7.027 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.1091, allocations: 0.9697 MB / 365.2 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009993/0.1101, allocations: 403.6 kB / 365.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005998/0.1107, allocations: 218.4 kB / 365.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.653e-05/0.1108, allocations: 7.984 kB / 365.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.1108, allocations: 38.56 kB / 365.9 MB, free: 5.301 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.733e-06/0.1108, allocations: 0 / 365.9 MB, free: 5.301 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.004842/0.1157, allocations: 2.305 MB / 368.2 MB, free: 2.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.1158, allocations: 118.7 kB / 368.3 MB, free: 2.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/0.116, allocations: 207.2 kB / 368.5 MB, free: 2.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.483e-05/0.116, allocations: 29.7 kB / 368.5 MB, free: 2.336 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.983e-05/0.1161, allocations: 148.6 kB / 368.7 MB, free: 2.188 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.1162, allocations: 137.9 kB / 368.8 MB, free: 2.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001809/0.1164, allocations: 74.12 kB / 368.9 MB, free: 1.973 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.1165, allocations: 338.8 kB / 369.2 MB, free: 1.633 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003057/0.1169, allocations: 108.8 kB / 369.3 MB, free: 1.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003303/0.1172, allocations: 165.5 kB / 369.5 MB, free: 1.348 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006437/0.1179, allocations: 299 kB / 369.8 MB, free: 1.043 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1179, allocations: 7.922 kB / 369.8 MB, free: 1.035 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007732/0.1187, allocations: 375.5 kB / 370.1 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.1187, allocations: 4 kB / 370.1 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.1187, allocations: 4 kB / 370.1 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.1187, allocations: 4 kB / 370.1 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006855/0.1194, allocations: 143.9 kB / 370.3 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.1194, allocations: 4 kB / 370.3 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002512/0.1197, allocations: 23.98 kB / 370.3 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.1197, allocations: 16 kB / 370.3 MB, free: 480 kB / 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.000132/0.1198, allocations: 150.8 kB / 370.5 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.679e-05/0.12, allocations: 35.64 kB / 370.5 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.518e-05/0.12, allocations: 29.53 kB / 370.5 MB, free: 252 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.12, allocations: 4 kB / 370.5 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.1201, allocations: 0 / 370.5 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.1201, allocations: 11.92 kB / 370.5 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1621/0.2821, allocations: 1.307 MB / 371.9 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.2822, allocations: 2.938 kB / 371.9 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009032/0.2831, allocations: 169.9 kB / 372 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.2831, allocations: 7.406 kB / 372 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.269e-05/0.2832, allocations: 11.06 kB / 372 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.165e-06/0.2832, allocations: 8.734 kB / 372 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.2832, allocations: 4.156 kB / 372.1 MB, free: 19.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.2852, allocations: 0.9508 MB / 373 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.2853, allocations: 131 kB / 373.1 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.294e-05/0.2854, allocations: 10.89 kB / 373.1 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000408/0.2858, allocations: 50.34 kB / 373.2 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001483/0.2859, allocations: 46.08 kB / 373.2 MB, free: 19.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/0.286, allocations: 15.31 kB / 373.3 MB, free: 19.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001127/0.2861, allocations: 151 kB / 373.4 MB, free: 19.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2861, allocations: 0 / 373.4 MB, free: 19.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004585/0.2866, allocations: 80.53 kB / 373.5 MB, free: 19.48 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.002181/0.2887, allocations: 1.504 MB / 375 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001/0.2898, allocations: 377.4 kB / 375.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2898, allocations: 1.438 kB / 375.4 MB, free: 18.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006497/0.2904, allocations: 249.6 kB / 375.6 MB, free: 18.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007544/0.2912, allocations: 73.58 kB / 375.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007319/0.2985, allocations: 3.972 MB / 379.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.2987, allocations: 0.7717 MB / 380.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002099/0.2989, allocations: 41.52 kB / 380.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001752/0.2991, allocations: 99.44 kB / 380.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2991, allocations: 4 kB / 380.6 MB, free: 15.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.015/2.315, allocations: 6.724 MB / 387.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001372/2.315, allocations: 201.3 kB / 387.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/4.122, allocations: 1.344 kB / 387.5 MB, free: 13.14 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