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.001268/0.001268, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001213/0.001213, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.001281, allocations: 60.02 kB / 307 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1053, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.004033/0.1094, allocations: 2.453 MB / 360 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00161/0.1111, allocations: 0.7716 MB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002504/0.1114, allocations: 4 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001874/0.1116, allocations: 39.58 kB / 360.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002972/0.1119, allocations: 107 kB / 360.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000414/0.1123, allocations: 123.8 kB / 361.1 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006107/0.113, allocations: 466.2 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.1132, allocations: 90.5 kB / 361.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003317/0.1135, allocations: 187.4 kB / 361.8 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003271/0.1139, allocations: 203.3 kB / 362 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.794e-05/0.114, allocations: 36 kB / 362 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.1141, allocations: 40 kB / 362.1 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.854e-05/0.1142, allocations: 83.73 kB / 362.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000217/0.1144, allocations: 187.2 kB / 362.3 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004625/0.1149, allocations: 411 kB / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.1149, allocations: 0 / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1149, allocations: 0 / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.188e-05/0.1149, allocations: 0 / 362.7 MB, free: 8.828 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.001958/0.1169, allocations: 0.6822 MB / 363.4 MB, free: 8.098 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.117, allocations: 12.03 kB / 363.4 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.077e-05/0.1171, allocations: 58.73 kB / 363.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.352e-05/0.1172, allocations: 32.56 kB / 363.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003439/0.1175, allocations: 275.5 kB / 363.8 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003922/0.1179, allocations: 132 kB / 363.9 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.244e-05/0.118, allocations: 27.98 kB / 363.9 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009341/0.1189, allocations: 371.3 kB / 364.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.119, allocations: 11.89 kB / 364.3 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.674e-05/0.119, allocations: 11.94 kB / 364.3 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.935e-06/0.119, allocations: 4 kB / 364.3 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.1203, allocations: 394.6 kB / 364.7 MB, free: 6.723 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00149/0.1218, allocations: 0.9697 MB / 365.7 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001084/0.1229, allocations: 399.6 kB / 366.1 MB, free: 5.277 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006222/0.1235, allocations: 218.4 kB / 366.3 MB, free: 5.055 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.451e-05/0.1236, allocations: 11.98 kB / 366.3 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.1236, allocations: 38.5 kB / 366.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.964e-06/0.1236, allocations: 0 / 366.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.005063/0.1287, allocations: 2.311 MB / 368.7 MB, free: 2.422 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.209e-05/0.1288, allocations: 110.8 kB / 368.8 MB, free: 2.289 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002703/0.1291, allocations: 203.2 kB / 369 MB, free: 2.074 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.1291, allocations: 33.7 kB / 369 MB, free: 2.035 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.1293, allocations: 152.6 kB / 369.1 MB, free: 1.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001297/0.1294, allocations: 137.9 kB / 369.3 MB, free: 1.746 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/0.1295, allocations: 75.05 kB / 369.3 MB, free: 1.668 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.1297, allocations: 334.8 kB / 369.7 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003411/0.1301, allocations: 108.8 kB / 369.8 MB, free: 1.227 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003617/0.1304, allocations: 169.4 kB / 369.9 MB, free: 1.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006881/0.1311, allocations: 287.7 kB / 370.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.994e-06/0.1311, allocations: 11.94 kB / 370.2 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000824/0.132, allocations: 367.5 kB / 370.6 MB, free: 380 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.132, allocations: 4 kB / 370.6 MB, free: 376 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.132, allocations: 4.094 kB / 370.6 MB, free: 372 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.132, allocations: 4 kB / 370.6 MB, free: 368 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006965/0.1327, allocations: 155.7 kB / 370.8 MB, free: 212 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.1328, allocations: 4 kB / 370.8 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002329/0.133, allocations: 27.97 kB / 370.8 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.133, allocations: 12 kB / 370.8 MB, free: 168 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.0001574/0.1332, allocations: 158.8 kB / 371 MB, free: 0 / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1655/0.2987, allocations: 26.95 kB / 371 MB, free: 20.42 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.2989, allocations: 28.91 kB / 371 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.2989, allocations: 5 kB / 371 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.2989, allocations: 1.406 kB / 371 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.2989, allocations: 2.547 kB / 371 MB, free: 20.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.3016, allocations: 1.325 MB / 372.3 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.3016, allocations: 2.625 kB / 372.4 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008669/0.3025, allocations: 171 kB / 372.5 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.297e-06/0.3025, allocations: 3.5 kB / 372.5 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.561e-05/0.3025, allocations: 13.84 kB / 372.5 MB, free: 19.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.385e-06/0.3026, allocations: 7.5 kB / 372.5 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3026, allocations: 3.906 kB / 372.5 MB, free: 19.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/0.3046, allocations: 0.9527 MB / 373.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/0.3048, allocations: 132.4 kB / 373.6 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.192e-05/0.3049, allocations: 12.11 kB / 373.6 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004354/0.3054, allocations: 44 kB / 373.7 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.3055, allocations: 43.58 kB / 373.7 MB, free: 19.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.751e-05/0.3055, allocations: 14.38 kB / 373.7 MB, free: 19.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000136/0.3057, allocations: 152.7 kB / 373.9 MB, free: 19.31 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.3057, allocations: 0 / 373.9 MB, free: 19.31 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004733/0.3061, allocations: 87.47 kB / 374 MB, free: 19.31 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.002264/0.3084, allocations: 1.495 MB / 375.5 MB, free: 18.3 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.3095, allocations: 383.3 kB / 375.8 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.3095, allocations: 0 / 375.8 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006461/0.3102, allocations: 248.3 kB / 376.1 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007469/0.3109, allocations: 82.75 kB / 376.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007913/0.3188, allocations: 3.866 MB / 380 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.3192, allocations: 0.7681 MB / 380.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002264/0.3194, allocations: 36.78 kB / 380.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001869/0.3196, allocations: 95.95 kB / 380.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3196, allocations: 1.156 kB / 380.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02884/0.3485, allocations: 7.002 MB / 387.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.955/8.303, allocations: 13.06 kB / 387.9 MB, free: 12.95 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