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.0008238/0.0008238, allocations: 92.36 kB / 16.65 MB, free: 6.535 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.001053/0.001053, allocations: 177.8 kB / 17.56 MB, free: 6.18 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.394/1.394, allocations: 223.3 MB / 241.6 MB, free: 188 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002777/0.0002776, allocations: 8 kB / 301.5 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1122, allocations: 50.41 MB / 351.9 MB, free: 3.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003748/0.116, allocations: 2.128 MB / 354.1 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001809/0.1179, allocations: 0.7173 MB / 354.8 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003499/0.1183, allocations: 7.938 kB / 354.8 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002406/0.1185, allocations: 27.78 kB / 354.8 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005017/0.119, allocations: 91.28 kB / 354.9 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005716/0.1196, allocations: 114.3 kB / 355 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007127/0.1204, allocations: 446.2 kB / 355.5 MB, free: 96 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.1206, allocations: 77.28 kB / 355.5 MB, free: 12 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004066/0.121, allocations: 163.4 kB / 355.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003321/0.1214, allocations: 187.3 kB / 355.9 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.956e-05/0.1214, allocations: 20 kB / 355.9 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.053e-05/0.1215, allocations: 20 kB / 355.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.211e-05/0.1216, allocations: 67.73 kB / 356 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002492/0.1219, allocations: 184.9 kB / 356.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004559/0.1223, allocations: 378.9 kB / 356.5 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.1224, allocations: 8 kB / 356.5 MB, free: 15 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1224, allocations: 0 / 356.5 MB, free: 15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.176e-05/0.1224, allocations: 0 / 356.5 MB, free: 15 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.001797/0.1242, allocations: 0.6668 MB / 357.2 MB, free: 14.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.1242, allocations: 12.03 kB / 357.2 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001153/0.1244, allocations: 62.72 kB / 357.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.1245, allocations: 36.5 kB / 357.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003741/0.1249, allocations: 275.5 kB / 357.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003803/0.1253, allocations: 140 kB / 357.7 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.504e-05/0.1253, allocations: 31.91 kB / 357.8 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.1265, allocations: 411.2 kB / 358.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.176e-05/0.1265, allocations: 0 / 358.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.654e-05/0.1265, allocations: 19.98 kB / 358.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1266, allocations: 4 kB / 358.2 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00138/0.1279, allocations: 470.7 kB / 358.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.1293, allocations: 0.9547 MB / 359.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.1305, allocations: 451.6 kB / 360 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006531/0.1312, allocations: 250.4 kB / 360.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.1312, allocations: 8.375 kB / 360.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.1312, allocations: 42.5 kB / 360.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.613e-06/0.1313, allocations: 3.938 kB / 360.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.005362/0.1366, allocations: 2.52 MB / 362.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.322e-05/0.1367, allocations: 106.8 kB / 363 MB, free: 8.066 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002116/0.1369, allocations: 203.2 kB / 363.2 MB, free: 7.855 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.137, allocations: 33.7 kB / 363.2 MB, free: 7.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.904e-05/0.1371, allocations: 152.6 kB / 363.3 MB, free: 7.664 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.1372, allocations: 134 kB / 363.5 MB, free: 7.531 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.391e-05/0.1373, allocations: 41.69 kB / 363.5 MB, free: 7.484 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.1374, allocations: 334.8 kB / 363.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003119/0.1377, allocations: 112.8 kB / 363.9 MB, free: 7.039 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004237/0.1381, allocations: 177.4 kB / 364.1 MB, free: 6.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006481/0.1388, allocations: 296.8 kB / 364.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1388, allocations: 0 / 364.4 MB, free: 6.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008467/0.1397, allocations: 384.3 kB / 364.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.1397, allocations: 4 kB / 364.8 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1397, allocations: 0 / 364.8 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.1397, allocations: 4 kB / 364.8 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000775/0.1405, allocations: 171.9 kB / 365 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.266e-05/0.1405, allocations: 7.938 kB / 365 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002314/0.1408, allocations: 27.98 kB / 365 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.1408, allocations: 12.94 kB / 365 MB, free: 5.941 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.0001657/0.141, allocations: 149.7 kB / 365.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.1411, allocations: 35.66 kB / 365.2 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.182e-05/0.1412, allocations: 25.53 kB / 365.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.1412, allocations: 4 kB / 365.2 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.1412, allocations: 0 / 365.2 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.1412, allocations: 7.984 kB / 365.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002564/0.1438, allocations: 1.416 MB / 366.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.1438, allocations: 4 kB / 366.6 MB, free: 4.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009191/0.1447, allocations: 211.8 kB / 366.8 MB, free: 3.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-06/0.1447, allocations: 4 kB / 366.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.57e-05/0.1448, allocations: 19.94 kB / 366.9 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.1448, allocations: 4 kB / 366.9 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.1448, allocations: 0 / 366.9 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002219/0.147, allocations: 1.046 MB / 367.9 MB, free: 2.879 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.1472, allocations: 132.8 kB / 368.1 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.334e-05/0.1472, allocations: 11.94 kB / 368.1 MB, free: 2.719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004372/0.1477, allocations: 63.95 kB / 368.1 MB, free: 2.656 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.1478, allocations: 39.88 kB / 368.2 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.1478, allocations: 15.98 kB / 368.2 MB, free: 2.602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001278/0.148, allocations: 156.6 kB / 368.3 MB, free: 2.449 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.148, allocations: 0 / 368.3 MB, free: 2.449 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004723/0.1484, allocations: 84 kB / 368.4 MB, free: 2.367 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.002537/0.151, allocations: 1.602 MB / 370 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.1521, allocations: 407.5 kB / 370.4 MB, free: 324 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1521, allocations: 0 / 370.4 MB, free: 324 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007782/0.1529, allocations: 284 kB / 370.7 MB, free: 40 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1773/0.3302, allocations: 57.42 kB / 370.7 MB, free: 24.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01326/0.3435, allocations: 4.208 MB / 375 MB, free: 22.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.3438, allocations: 0.7718 MB / 375.7 MB, free: 21.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002915/0.3442, allocations: 40.94 kB / 375.8 MB, free: 21.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002594/0.3444, allocations: 97.92 kB / 375.9 MB, free: 21.97 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3444, allocations: 1.312 kB / 375.9 MB, free: 21.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02608/0.3705, allocations: 6.414 MB / 382.3 MB, free: 20.88 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/0.3707, allocations: 200.4 kB / 382.5 MB, free: 20.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.005/2.375, allocations: 0 / 382.5 MB, free: 20.62 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