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.001466/0.001466, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001431/0.001431, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.318/1.318, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 39.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2449, allocations: 49.44 MB / 400.2 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003668/0.2486, allocations: 2.44 MB / 402.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.2499, allocations: 0.7395 MB / 403.4 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.25, allocations: 7.938 kB / 403.4 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.2502, allocations: 39.58 kB / 403.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002058/0.2504, allocations: 111.1 kB / 403.6 MB, free: 5.637 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.2508, allocations: 122.3 kB / 403.7 MB, free: 5.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004632/0.2512, allocations: 470.2 kB / 404.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.2514, allocations: 88.89 kB / 404.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002231/0.2516, allocations: 179.5 kB / 404.4 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002558/0.2519, allocations: 211.2 kB / 404.6 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.341e-05/0.252, allocations: 36 kB / 404.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.03e-05/0.2521, allocations: 40 kB / 404.7 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.222e-05/0.2521, allocations: 79.8 kB / 404.8 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001729/0.2523, allocations: 183.2 kB / 404.9 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004409/0.2528, allocations: 418.4 kB / 405.4 MB, free: 3.84 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2528, allocations: 0 / 405.4 MB, free: 3.84 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2528, allocations: 3.938 kB / 405.4 MB, free: 3.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.2528, allocations: 0 / 405.4 MB, free: 3.836 MB / 318.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.001547/0.2544, allocations: 0.6898 MB / 406 MB, free: 3.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.2544, allocations: 11.89 kB / 406.1 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.946e-05/0.2545, allocations: 66.73 kB / 406.1 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.414e-05/0.2546, allocations: 32.75 kB / 406.2 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000363/0.2549, allocations: 267.8 kB / 406.4 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/0.2551, allocations: 92.08 kB / 406.5 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.056e-05/0.2551, allocations: 31.98 kB / 406.5 MB, free: 2.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009154/0.2561, allocations: 379.2 kB / 406.9 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.2561, allocations: 3.953 kB / 406.9 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.2561, allocations: 12 kB / 406.9 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.2561, allocations: 8 kB / 406.9 MB, free: 2.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.2574, allocations: 399.5 kB / 407.3 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001345/0.2588, allocations: 0.9586 MB / 408.3 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.2599, allocations: 407.5 kB / 408.7 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006547/0.2605, allocations: 214.4 kB / 408.9 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.2606, allocations: 4 kB / 408.9 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.238e-05/0.2606, allocations: 50.48 kB / 408.9 MB, free: 28 kB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 1.884e-06/0.2606, allocations: 0 / 408.9 MB, free: 28 kB / 318.1 MB Notification: Performance of matching and sorting (n=38): time 0.005032/0.2657, allocations: 2.32 MB / 411.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.378e-05/0.2658, allocations: 106.8 kB / 411.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002084/0.266, allocations: 203.2 kB / 411.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.292e-05/0.266, allocations: 33.7 kB / 411.6 MB, free: 13.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.2661, allocations: 156.8 kB / 411.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.2663, allocations: 142.7 kB / 411.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001356/0.2664, allocations: 78.11 kB / 412 MB, free: 12.69 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.2666, allocations: 334.8 kB / 412.3 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003165/0.2669, allocations: 112.8 kB / 412.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00035/0.2673, allocations: 165.4 kB / 412.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006584/0.2679, allocations: 288.8 kB / 412.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.2679, allocations: 0 / 412.8 MB, free: 11.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008261/0.2688, allocations: 373.1 kB / 413.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.2688, allocations: 4 kB / 413.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.2688, allocations: 4 kB / 413.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.2688, allocations: 4 kB / 413.2 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000682/0.2695, allocations: 143.9 kB / 413.4 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.2696, allocations: 3.938 kB / 413.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.2698, allocations: 35.97 kB / 413.4 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.25e-05/0.2698, allocations: 12 kB / 413.4 MB, free: 11.19 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.0001487/0.27, allocations: 145.7 kB / 413.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.396e-05/0.2701, allocations: 35.73 kB / 413.6 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.538e-05/0.2701, allocations: 37.52 kB / 413.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.2701, allocations: 4 kB / 413.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2702, allocations: 0 / 413.6 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.2702, allocations: 7.984 kB / 413.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00232/0.2725, allocations: 1.323 MB / 415 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.2725, allocations: 0 / 415 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00083/0.2733, allocations: 175.9 kB / 415.1 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.2734, allocations: 4 kB / 415.1 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.2734, allocations: 15.92 kB / 415.2 MB, free: 9.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.2734, allocations: 8 kB / 415.2 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.83e-06/0.2734, allocations: 4.094 kB / 415.2 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002014/0.2754, allocations: 0.9566 MB / 416.1 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.2756, allocations: 125 kB / 416.2 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.03e-05/0.2756, allocations: 19.94 kB / 416.3 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000398/0.276, allocations: 43.94 kB / 416.3 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.963e-05/0.2761, allocations: 43.89 kB / 416.3 MB, free: 8.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.2762, allocations: 19.98 kB / 416.4 MB, free: 8.07 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001273/0.2763, allocations: 148.6 kB / 416.5 MB, free: 7.926 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2763, allocations: 0 / 416.5 MB, free: 7.926 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004181/0.2767, allocations: 84 kB / 416.6 MB, free: 7.844 MB / 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.002341/0.2791, allocations: 1.506 MB / 418.1 MB, free: 6.289 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009765/0.2801, allocations: 363.8 kB / 418.5 MB, free: 5.934 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2801, allocations: 4 kB / 418.5 MB, free: 5.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006755/0.2808, allocations: 243.7 kB / 418.7 MB, free: 5.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006595/0.2814, allocations: 77.16 kB / 418.8 MB, free: 5.621 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007918/0.2894, allocations: 3.881 MB / 422.7 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003735/0.2898, allocations: 0.7643 MB / 423.4 MB, free: 0.793 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001546/0.2899, allocations: 42.95 kB / 423.5 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001789/0.2901, allocations: 91.41 kB / 423.5 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2901, allocations: 0 / 423.5 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03056/0.3207, allocations: 7.125 MB / 430.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.205/8.525, allocations: 9.141 kB / 430.7 MB, free: 9.652 MB / 350.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