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.001279/0.001279, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001305/0.001306, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001135, allocations: 59.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.2297, allocations: 50.55 MB / 408.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003192/0.2329, allocations: 2.455 MB / 411.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.2343, allocations: 0.7678 MB / 412 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.2344, allocations: 4 kB / 412 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.2346, allocations: 51.52 kB / 412 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.2348, allocations: 103.1 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003384/0.2352, allocations: 127.3 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000427/0.2356, allocations: 466.2 kB / 412.7 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.2358, allocations: 88.86 kB / 412.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002332/0.236, allocations: 191.4 kB / 413 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002452/0.2363, allocations: 203.3 kB / 413.2 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.942e-05/0.2364, allocations: 40 kB / 413.2 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.788e-05/0.2364, allocations: 39.94 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.901e-05/0.2365, allocations: 91.72 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001435/0.2367, allocations: 175.2 kB / 413.5 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003711/0.237, allocations: 416.3 kB / 413.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.237, allocations: 0 / 413.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2371, allocations: 0 / 413.9 MB, free: 12.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.2371, allocations: 4 kB / 413.9 MB, free: 12.43 MB / 334.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.00149/0.2386, allocations: 0.6784 MB / 414.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.2386, allocations: 11.97 kB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.757e-05/0.2387, allocations: 62.72 kB / 414.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.166e-05/0.2388, allocations: 36.56 kB / 414.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003959/0.2392, allocations: 272.6 kB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.2393, allocations: 88.08 kB / 415.1 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.841e-05/0.2394, allocations: 27.91 kB / 415.1 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008768/0.2403, allocations: 379.2 kB / 415.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.2403, allocations: 8 kB / 415.5 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/0.2403, allocations: 4 kB / 415.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.2403, allocations: 8 kB / 415.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.2415, allocations: 391.5 kB / 415.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001229/0.2427, allocations: 0.9699 MB / 416.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.2438, allocations: 399.5 kB / 417.2 MB, free: 8.926 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005955/0.2444, allocations: 226.4 kB / 417.4 MB, free: 8.695 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.2444, allocations: 4 kB / 417.4 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.2444, allocations: 34.56 kB / 417.5 MB, free: 8.648 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.954e-06/0.2444, allocations: 0 / 417.5 MB, free: 8.648 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.004602/0.2491, allocations: 2.32 MB / 419.8 MB, free: 6.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.721e-05/0.2491, allocations: 114.8 kB / 419.9 MB, free: 5.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001919/0.2493, allocations: 199.2 kB / 420.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/0.2494, allocations: 33.7 kB / 420.1 MB, free: 5.684 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.2495, allocations: 152.6 kB / 420.3 MB, free: 5.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.2496, allocations: 137.9 kB / 420.4 MB, free: 5.395 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.2497, allocations: 70.12 kB / 420.5 MB, free: 5.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.2499, allocations: 338.8 kB / 420.8 MB, free: 4.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003068/0.2502, allocations: 108.8 kB / 420.9 MB, free: 4.871 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000387/0.2506, allocations: 165.5 kB / 421.1 MB, free: 4.695 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006098/0.2512, allocations: 304.1 kB / 421.4 MB, free: 4.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2512, allocations: 4 kB / 421.4 MB, free: 4.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007778/0.252, allocations: 365 kB / 421.7 MB, free: 4.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.723e-05/0.252, allocations: 4 kB / 421.7 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.252, allocations: 3.938 kB / 421.7 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.252, allocations: 4 kB / 421.8 MB, free: 4.008 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006698/0.2527, allocations: 147.9 kB / 421.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.2527, allocations: 4 kB / 421.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/0.253, allocations: 23.98 kB / 421.9 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.891e-05/0.253, allocations: 16 kB / 421.9 MB, free: 3.82 MB / 334.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.0001455/0.2531, allocations: 161.6 kB / 422.1 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.194e-05/0.2532, allocations: 31.56 kB / 422.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.879e-05/0.2533, allocations: 29.53 kB / 422.2 MB, free: 3.594 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.2533, allocations: 4.938 kB / 422.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.2533, allocations: 0 / 422.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.2533, allocations: 3.984 kB / 422.2 MB, free: 3.586 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002235/0.2556, allocations: 1.324 MB / 423.5 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.2556, allocations: 4.094 kB / 423.5 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008125/0.2564, allocations: 167.9 kB / 423.7 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.2564, allocations: 4 kB / 423.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.464e-05/0.2565, allocations: 19.94 kB / 423.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.053e-06/0.2565, allocations: 11.94 kB / 423.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2565, allocations: 0 / 423.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.2585, allocations: 0.9438 MB / 424.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.2586, allocations: 132.7 kB / 424.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.417e-05/0.2587, allocations: 15.94 kB / 424.8 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004148/0.2591, allocations: 47.95 kB / 424.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.867e-05/0.2592, allocations: 39.94 kB / 424.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.2592, allocations: 8 kB / 424.9 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001222/0.2593, allocations: 148.6 kB / 425 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2594, allocations: 11.94 kB / 425 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004445/0.2598, allocations: 80 kB / 425.1 MB, free: 500 kB / 334.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.262, allocations: 1.498 MB / 426.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009732/0.263, allocations: 363.8 kB / 427 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.263, allocations: 4 kB / 427 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006422/0.2637, allocations: 252 kB / 427.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006877/0.2644, allocations: 79.92 kB / 427.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00781/0.2722, allocations: 3.853 MB / 431.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.2726, allocations: 0.7721 MB / 431.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001823/0.2727, allocations: 42.89 kB / 432 MB, free: 9.402 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001808/0.2729, allocations: 103.4 kB / 432.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2729, allocations: 0 / 432.1 MB, free: 9.301 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02396/0.2969, allocations: 7.282 MB / 439.3 MB, free: 2.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.479/8.776, allocations: 15.89 kB / 439.4 MB, free: 2.129 MB / 350.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