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.001268/0.001268, allocations: 106.3 kB / 16.92 MB, free: 6.109 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.001205/0.001205, allocations: 191.3 kB / 17.85 MB, free: 5.277 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.267/1.267, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001043/0.001043, allocations: 48.42 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1033, allocations: 49.44 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.004304/0.1076, allocations: 2.441 MB / 352.6 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.1091, allocations: 0.7328 MB / 353.3 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000246/0.1094, allocations: 4 kB / 353.3 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002034/0.1096, allocations: 43.52 kB / 353.4 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003418/0.11, allocations: 111.1 kB / 353.5 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004999/0.1105, allocations: 119.8 kB / 353.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000635/0.1111, allocations: 466.2 kB / 354.1 MB, free: 432 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002073/0.1113, allocations: 80.92 kB / 354.1 MB, free: 344 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002741/0.1116, allocations: 191.4 kB / 354.3 MB, free: 152 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002828/0.1119, allocations: 207.3 kB / 354.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.52e-05/0.112, allocations: 36 kB / 354.6 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.692e-05/0.1121, allocations: 40 kB / 354.6 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.004e-05/0.1122, allocations: 75.81 kB / 354.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000202/0.1124, allocations: 183.2 kB / 354.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005043/0.1129, allocations: 414.8 kB / 355.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1129, allocations: 0 / 355.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1129, allocations: 4 kB / 355.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.44e-05/0.1129, allocations: 0 / 355.3 MB, free: 15.21 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.001753/0.1147, allocations: 0.6744 MB / 355.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.1147, allocations: 19.88 kB / 356 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.982e-05/0.1148, allocations: 58.73 kB / 356 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.984e-05/0.1149, allocations: 32.56 kB / 356 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.1153, allocations: 267.7 kB / 356.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003706/0.1156, allocations: 136 kB / 356.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.223e-05/0.1157, allocations: 31.91 kB / 356.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009191/0.1167, allocations: 371.2 kB / 356.8 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.1167, allocations: 15.92 kB / 356.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.439e-05/0.1167, allocations: 8 kB / 356.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.1168, allocations: 4 kB / 356.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.118, allocations: 395.5 kB / 357.2 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.1194, allocations: 0.974 MB / 358.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.1205, allocations: 399.5 kB / 358.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006333/0.1211, allocations: 226.4 kB / 358.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.1212, allocations: 11.92 kB / 358.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/0.1212, allocations: 34.56 kB / 358.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.814e-06/0.1212, allocations: 0 / 358.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.004801/0.126, allocations: 2.313 MB / 361.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.1261, allocations: 114.8 kB / 361.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.1264, allocations: 199.2 kB / 361.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.162e-05/0.1264, allocations: 33.7 kB / 361.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.414e-05/0.1265, allocations: 152.6 kB / 361.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.1266, allocations: 138 kB / 361.8 MB, free: 8.117 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.1268, allocations: 78.11 kB / 361.9 MB, free: 8.035 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.1269, allocations: 334.8 kB / 362.2 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003213/0.1272, allocations: 104.8 kB / 362.3 MB, free: 7.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000343/0.1276, allocations: 169.5 kB / 362.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006649/0.1282, allocations: 291.9 kB / 362.8 MB, free: 7.113 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1283, allocations: 0 / 362.8 MB, free: 7.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008273/0.1291, allocations: 368.9 kB / 363.1 MB, free: 6.746 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.1291, allocations: 11.94 kB / 363.1 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1291, allocations: 0 / 363.1 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.1292, allocations: 4 kB / 363.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006925/0.1299, allocations: 147.9 kB / 363.3 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.1299, allocations: 4 kB / 363.3 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002467/0.1301, allocations: 31.97 kB / 363.3 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.1302, allocations: 12 kB / 363.3 MB, free: 6.539 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.0002081/0.1304, allocations: 149.7 kB / 363.5 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-05/0.1305, allocations: 27.66 kB / 363.5 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.827e-05/0.1305, allocations: 33.45 kB / 363.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.005e-05/0.1306, allocations: 8 kB / 363.6 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.1306, allocations: 0 / 363.6 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-06/0.1306, allocations: 4 kB / 363.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.1329, allocations: 1.342 MB / 364.9 MB, free: 4.875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.1329, allocations: 4 kB / 364.9 MB, free: 4.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008314/0.1338, allocations: 168 kB / 365.1 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.1338, allocations: 4 kB / 365.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.403e-05/0.1338, allocations: 19.92 kB / 365.1 MB, free: 4.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.1338, allocations: 4 kB / 365.1 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1338, allocations: 3.938 kB / 365.1 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001925/0.1358, allocations: 0.9483 MB / 366 MB, free: 3.688 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000126/0.1359, allocations: 124.8 kB / 366.2 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.299e-05/0.136, allocations: 11.94 kB / 366.2 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000422/0.1364, allocations: 55.94 kB / 366.2 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.724e-05/0.1365, allocations: 35.95 kB / 366.3 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.1365, allocations: 16.11 kB / 366.3 MB, free: 3.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001217/0.1367, allocations: 156.6 kB / 366.4 MB, free: 3.277 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1367, allocations: 0 / 366.4 MB, free: 3.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004366/0.1371, allocations: 84 kB / 366.5 MB, free: 3.195 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.002206/0.1393, allocations: 1.511 MB / 368 MB, free: 1.637 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.1404, allocations: 397.8 kB / 368.4 MB, free: 1.254 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.1404, allocations: 4 kB / 368.4 MB, free: 1.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006871/0.1411, allocations: 243.7 kB / 368.7 MB, free: 1.012 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.1418, allocations: 73.91 kB / 368.7 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1695/0.3113, allocations: 3.836 MB / 372.6 MB, free: 24.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.3116, allocations: 0.7677 MB / 373.3 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000205/0.3118, allocations: 37.97 kB / 373.4 MB, free: 23.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/0.312, allocations: 101.7 kB / 373.5 MB, free: 23.64 MB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.312, allocations: 0 / 373.5 MB, free: 23.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02741/0.3394, allocations: 7.002 MB / 380.5 MB, free: 22.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.55/7.89, allocations: 6.375 kB / 380.5 MB, free: 22.45 MB / 302.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