Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008363/0.0008363, allocations: 179.1 kB / 16.72 MB, free: 4.953 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.243/1.243, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000729/0.000729, allocations: 85.36 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002803/0.0002804, allocations: 15.98 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1903/0.1906, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.001802/0.1924, allocations: 2.048 MB / 377.2 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008447/0.1933, allocations: 0.7316 MB / 378 MB, free: 43.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.784e-05/0.1934, allocations: 4.5 kB / 378 MB, free: 43.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.631e-05/0.1935, allocations: 35.23 kB / 378 MB, free: 43.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001429/0.1937, allocations: 90.52 kB / 378.1 MB, free: 43.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.1939, allocations: 90.83 kB / 378.2 MB, free: 43.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000317/0.1942, allocations: 423.4 kB / 378.6 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.1944, allocations: 71.11 kB / 378.7 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001608/0.1946, allocations: 161 kB / 378.8 MB, free: 42.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.1947, allocations: 183.9 kB / 379 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.954e-05/0.1948, allocations: 19.25 kB / 379 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.637e-05/0.1948, allocations: 24.31 kB / 379 MB, free: 42.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.041e-05/0.1949, allocations: 66.44 kB / 379.1 MB, free: 42.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.195, allocations: 180.3 kB / 379.3 MB, free: 42.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.1952, allocations: 291.5 kB / 379.6 MB, free: 42.12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.1953, allocations: 1.375 kB / 379.6 MB, free: 42.12 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1953, allocations: 0 / 379.6 MB, free: 42.12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1953, allocations: 0 / 379.6 MB, free: 42.12 MB / 298.7 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.001261/0.1965, allocations: 0.6718 MB / 380.2 MB, free: 41.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.1966, allocations: 10 kB / 380.3 MB, free: 41.59 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.635e-05/0.1967, allocations: 62.16 kB / 380.3 MB, free: 41.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.113e-05/0.1967, allocations: 34.84 kB / 380.4 MB, free: 41.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002331/0.197, allocations: 277.4 kB / 380.6 MB, free: 41.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003264/0.1973, allocations: 131.6 kB / 380.8 MB, free: 41.13 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.623e-05/0.1974, allocations: 29.34 kB / 380.8 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008267/0.1982, allocations: 412.8 kB / 381.2 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.1982, allocations: 7.891 kB / 381.2 MB, free: 40.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.985e-05/0.1983, allocations: 11.34 kB / 381.2 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1983, allocations: 7.688 kB / 381.2 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.1994, allocations: 463.3 kB / 381.7 MB, free: 40.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.2005, allocations: 0.9833 MB / 382.6 MB, free: 39.81 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/0.2015, allocations: 455.5 kB / 383.1 MB, free: 39.57 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005901/0.2021, allocations: 254.4 kB / 383.3 MB, free: 39.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.107e-05/0.2021, allocations: 2.375 kB / 383.3 MB, free: 39.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.2021, allocations: 41.91 kB / 383.4 MB, free: 39.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 1.503e-06/0.2021, allocations: 0 / 383.4 MB, free: 39.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.004244/0.2064, allocations: 2.51 MB / 385.9 MB, free: 37.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.2064, allocations: 110.8 kB / 386 MB, free: 37.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.2066, allocations: 203.2 kB / 386.2 MB, free: 37.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.321e-05/0.2066, allocations: 29.7 kB / 386.2 MB, free: 37.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.991e-05/0.2066, allocations: 152.6 kB / 386.4 MB, free: 36.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.281e-05/0.2067, allocations: 134 kB / 386.5 MB, free: 36.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-05/0.2067, allocations: 8 kB / 386.5 MB, free: 36.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.703e-05/0.2068, allocations: 338.8 kB / 386.8 MB, free: 36.47 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002565/0.2071, allocations: 120.7 kB / 387 MB, free: 36.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002605/0.2073, allocations: 169.5 kB / 387.1 MB, free: 36.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005188/0.2079, allocations: 300.6 kB / 387.4 MB, free: 35.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.2079, allocations: 4 kB / 387.4 MB, free: 35.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006522/0.2085, allocations: 368.9 kB / 387.8 MB, free: 35.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.2085, allocations: 8 kB / 387.8 MB, free: 35.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.2086, allocations: 4.078 kB / 387.8 MB, free: 35.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.2086, allocations: 8 kB / 387.8 MB, free: 35.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006229/0.2092, allocations: 167.8 kB / 388 MB, free: 35.3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.2092, allocations: 7.938 kB / 388 MB, free: 35.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001942/0.2094, allocations: 28.92 kB / 388 MB, free: 35.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.2094, allocations: 12 kB / 388 MB, free: 35.25 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.869e-05/0.2095, allocations: 142.7 kB / 388.2 MB, free: 35.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.85e-05/0.2096, allocations: 27.66 kB / 388.2 MB, free: 35.08 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.326e-05/0.2097, allocations: 37.52 kB / 388.2 MB, free: 35.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.2097, allocations: 8 kB / 388.2 MB, free: 35.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2097, allocations: 0 / 388.2 MB, free: 35.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2097, allocations: 3.984 kB / 388.2 MB, free: 35.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001816/0.2115, allocations: 1.393 MB / 389.6 MB, free: 33.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2116, allocations: 4 kB / 389.6 MB, free: 33.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007766/0.2123, allocations: 204 kB / 389.8 MB, free: 33.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.2123, allocations: 4 kB / 389.8 MB, free: 33.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/0.2124, allocations: 23.86 kB / 389.9 MB, free: 33.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.2124, allocations: 4 kB / 389.9 MB, free: 33.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2124, allocations: 0 / 389.9 MB, free: 33.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001701/0.2141, allocations: 1.05 MB / 390.9 MB, free: 32.22 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.72e-05/0.2142, allocations: 132.8 kB / 391 MB, free: 32.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.232e-05/0.2142, allocations: 15.92 kB / 391.1 MB, free: 32.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003924/0.2146, allocations: 63.95 kB / 391.1 MB, free: 32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.086e-05/0.2147, allocations: 47.88 kB / 391.2 MB, free: 31.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.2148, allocations: 11.98 kB / 391.2 MB, free: 31.94 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.615e-05/0.2149, allocations: 148.6 kB / 391.3 MB, free: 31.79 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2149, allocations: 0 / 391.3 MB, free: 31.79 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003594/0.2152, allocations: 84 kB / 391.4 MB, free: 31.71 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001841/0.2171, allocations: 1.594 MB / 393 MB, free: 30.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008348/0.2179, allocations: 404.5 kB / 393.4 MB, free: 29.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2179, allocations: 192 / 393.4 MB, free: 29.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005834/0.2185, allocations: 280 kB / 393.7 MB, free: 29.4 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000655/0.2192, allocations: 68.81 kB / 393.7 MB, free: 29.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005824/0.225, allocations: 2.78 MB / 396.5 MB, free: 26.47 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001573/0.2252, allocations: 0.7759 MB / 397.3 MB, free: 25.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/0.2254, allocations: 95.39 kB / 397.4 MB, free: 25.57 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2254, allocations: 0 / 397.4 MB, free: 25.57 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.608/2.833, allocations: 4.351 MB / 401.7 MB, free: 21.21 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","../files/Modelica_3.2.3_cpp_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.bMax,elastoBacklash.bMin,elastoBacklash.c,elastoBacklash.d,elastoBacklash.flange_a.phi,elastoBacklash.flange_a.tau,elastoBacklash.flange_b.phi,elastoBacklash.flange_b.tau,elastoBacklash.lossPower,elastoBacklash.phi_diff,elastoBacklash.phi_nominal,elastoBacklash.phi_rel,elastoBacklash.phi_rel0,elastoBacklash.stateSelect,elastoBacklash.tau,elastoBacklash.tau_c,elastoBacklash.tau_d,elastoBacklash.useHeatPort,elastoBacklash.w_rel,elastoBacklash2.a_rel,elastoBacklash2.b,elastoBacklash2.bMax,elastoBacklash2.bMin,elastoBacklash2.c,elastoBacklash2.d,elastoBacklash2.flange_a.phi,elastoBacklash2.flange_a.tau,elastoBacklash2.flange_b.phi,elastoBacklash2.flange_b.tau,elastoBacklash2.lossPower,elastoBacklash2.phi_diff,elastoBacklash2.phi_nominal,elastoBacklash2.phi_rel,elastoBacklash2.phi_rel0,elastoBacklash2.stateSelect,elastoBacklash2.tau,elastoBacklash2.tau_c,elastoBacklash2.tau_d,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.tau_c,springDamper.tau_d,springDamper.useHeatPort,springDamper.w_rel,time