Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_3_2_3_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.001387/0.001387, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.00141/0.00141, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.428/1.428, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 51.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09083/0.0922, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003954/0.0962, allocations: 2.448 MB / 377.1 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.09782, allocations: 0.7763 MB / 377.9 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002454/0.09809, allocations: 7.938 kB / 377.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001912/0.09833, allocations: 39.59 kB / 377.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003057/0.09864, allocations: 107.1 kB / 378 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004226/0.09908, allocations: 123.8 kB / 378.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005325/0.09962, allocations: 470.2 kB / 378.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002107/0.09984, allocations: 92.86 kB / 378.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003332/0.1002, allocations: 187.5 kB / 378.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002833/0.1005, allocations: 203.3 kB / 379.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.013e-05/0.1006, allocations: 43.94 kB / 379.1 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.43e-05/0.1006, allocations: 40 kB / 379.1 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.599e-05/0.1007, allocations: 83.73 kB / 379.2 MB, free: 492 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000195/0.1009, allocations: 179.2 kB / 379.4 MB, free: 312 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1804/0.2813, allocations: 406 kB / 379.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2813, allocations: 0 / 379.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2814, allocations: 1.375 kB / 379.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.256e-05/0.2814, allocations: 0.6562 kB / 379.8 MB, free: 10.22 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.001558/0.2829, allocations: 0.69 MB / 380.5 MB, free: 9.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.283, allocations: 11.97 kB / 380.5 MB, free: 9.781 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.867e-05/0.2831, allocations: 61.97 kB / 380.6 MB, free: 9.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.056e-05/0.2832, allocations: 36.3 kB / 380.6 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003714/0.2836, allocations: 277.8 kB / 380.9 MB, free: 9.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.2837, allocations: 82.38 kB / 380.9 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.821e-05/0.2837, allocations: 35.05 kB / 381 MB, free: 9.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008985/0.2846, allocations: 379.5 kB / 381.4 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.2847, allocations: 3.016 kB / 381.4 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.338e-05/0.2847, allocations: 10.31 kB / 381.4 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.2847, allocations: 9.844 kB / 381.4 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.2859, allocations: 390.6 kB / 381.8 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001262/0.2872, allocations: 0.9612 MB / 382.7 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.2883, allocations: 402.5 kB / 383.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005951/0.2889, allocations: 221.3 kB / 383.3 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.289, allocations: 9.594 kB / 383.3 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.655e-05/0.289, allocations: 38.09 kB / 383.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 1.603e-06/0.289, allocations: 0 / 383.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=38): time 0.004372/0.2934, allocations: 2.326 MB / 385.7 MB, free: 7.395 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/0.2934, allocations: 111.2 kB / 385.8 MB, free: 7.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.2936, allocations: 206.9 kB / 386 MB, free: 7.168 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.639e-05/0.2937, allocations: 30.89 kB / 386 MB, free: 7.137 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.622e-05/0.2937, allocations: 153.5 kB / 386.2 MB, free: 7.031 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.429e-05/0.2938, allocations: 145.8 kB / 386.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.2939, allocations: 76.19 kB / 386.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.089e-05/0.294, allocations: 342.6 kB / 386.7 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003097/0.2943, allocations: 105.2 kB / 386.8 MB, free: 6.598 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003213/0.2947, allocations: 166.8 kB / 387 MB, free: 6.527 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006357/0.2953, allocations: 290.3 kB / 387.3 MB, free: 6.391 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2953, allocations: 0 / 387.3 MB, free: 6.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008006/0.2961, allocations: 371.1 kB / 387.7 MB, free: 6.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.2961, allocations: 9.688 kB / 387.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.2962, allocations: 2.312 kB / 387.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.2962, allocations: 3.953 kB / 387.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007/0.2969, allocations: 150.2 kB / 387.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.2969, allocations: 3.984 kB / 387.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.2971, allocations: 27.41 kB / 387.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.2972, allocations: 12.12 kB / 387.9 MB, free: 6.227 MB / 318.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.0001171/0.2973, allocations: 154.5 kB / 388 MB, free: 6.086 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.773e-05/0.2974, allocations: 30.59 kB / 388 MB, free: 6.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.994e-05/0.2975, allocations: 33.91 kB / 388.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.2975, allocations: 6.719 kB / 388.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.2975, allocations: 1.188 kB / 388.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.2975, allocations: 6.766 kB / 388.1 MB, free: 6.035 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/0.2997, allocations: 1.334 MB / 389.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.2997, allocations: 2.25 kB / 389.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000862/0.3006, allocations: 172.5 kB / 389.6 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.424e-06/0.3006, allocations: 3.891 kB / 389.6 MB, free: 5.184 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.263e-05/0.3006, allocations: 11.22 kB / 389.6 MB, free: 5.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.3006, allocations: 8.016 kB / 389.6 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.3006, allocations: 3.312 kB / 389.6 MB, free: 5.176 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001962/0.3026, allocations: 0.9541 MB / 390.6 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001239/0.3027, allocations: 130.4 kB / 390.7 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.112e-05/0.3028, allocations: 8.547 kB / 390.7 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004152/0.3032, allocations: 47.95 kB / 390.8 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.3033, allocations: 43.47 kB / 390.8 MB, free: 4.516 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.681e-05/0.3034, allocations: 18.34 kB / 390.8 MB, free: 4.508 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001096/0.3035, allocations: 151.7 kB / 391 MB, free: 4.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3035, allocations: 0 / 391 MB, free: 4.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004407/0.3039, allocations: 83.47 kB / 391 MB, free: 4.398 MB / 318.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.002111/0.3061, allocations: 1.498 MB / 392.5 MB, free: 3.344 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009772/0.3071, allocations: 385.3 kB / 392.9 MB, free: 3.25 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3071, allocations: 0 / 392.9 MB, free: 3.25 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006234/0.3077, allocations: 250.4 kB / 393.2 MB, free: 3.195 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006897/0.3084, allocations: 62.83 kB / 393.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007608/0.316, allocations: 3.859 MB / 397.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002497/0.3163, allocations: 0.7679 MB / 397.9 MB, free: 124 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001824/0.3165, allocations: 44.88 kB / 397.9 MB, free: 108 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.3167, allocations: 98.22 kB / 398 MB, free: 40 kB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3167, allocations: 0 / 398 MB, free: 40 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03239/0.3491, allocations: 7.128 MB / 405.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.869/8.218, allocations: 13.92 kB / 405.1 MB, free: 13.36 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches