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.001348/0.001348, allocations: 113.2 kB / 17.73 MB, free: 5.312 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.001254/0.001254, allocations: 188.2 kB / 18.66 MB, free: 4.387 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.415/1.415, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001704/0.001705, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09756/0.09927, allocations: 46.62 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003992/0.1033, allocations: 2.444 MB / 377.1 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.1048, allocations: 0.7763 MB / 377.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.105, allocations: 7.938 kB / 377.9 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001917/0.1052, allocations: 39.58 kB / 377.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002338/0.1054, allocations: 107.1 kB / 378 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003908/0.1058, allocations: 123.8 kB / 378.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005848/0.1064, allocations: 466.2 kB / 378.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.1066, allocations: 100.8 kB / 378.7 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002631/0.1069, allocations: 175.5 kB / 378.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002818/0.1072, allocations: 211.2 kB / 379.1 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.368e-05/0.1073, allocations: 36 kB / 379.1 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.09e-05/0.1073, allocations: 40 kB / 379.1 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.1074, allocations: 87.73 kB / 379.2 MB, free: 476 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001956/0.1076, allocations: 183.2 kB / 379.4 MB, free: 292 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.183/0.2906, allocations: 400.9 kB / 379.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.2906, allocations: 0 / 379.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2907, allocations: 0 / 379.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.2907, allocations: 1.125 kB / 379.8 MB, free: 10.21 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.001585/0.2923, allocations: 0.6913 MB / 380.5 MB, free: 9.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.2923, allocations: 9.406 kB / 380.5 MB, free: 9.773 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.481e-05/0.2924, allocations: 66.14 kB / 380.6 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.721e-05/0.2925, allocations: 36.25 kB / 380.6 MB, free: 9.719 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/0.2929, allocations: 280.9 kB / 380.9 MB, free: 9.492 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.293, allocations: 83.16 kB / 380.9 MB, free: 9.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6e-05/0.2931, allocations: 37.33 kB / 381 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009337/0.294, allocations: 374.8 kB / 381.4 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/0.2941, allocations: 5.656 kB / 381.4 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.313e-05/0.2941, allocations: 10.44 kB / 381.4 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.2941, allocations: 6.375 kB / 381.4 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.2954, allocations: 392.1 kB / 381.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.2969, allocations: 0.9542 MB / 382.7 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.2981, allocations: 411.9 kB / 383.1 MB, free: 8.801 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006575/0.2987, allocations: 218.8 kB / 383.3 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.2988, allocations: 4.5 kB / 383.3 MB, free: 8.773 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.2988, allocations: 39.59 kB / 383.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 2.204e-06/0.2988, allocations: 1.25 kB / 383.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of matching and sorting (n=38): time 0.004684/0.3035, allocations: 2.324 MB / 385.7 MB, free: 7.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.3036, allocations: 108.4 kB / 385.8 MB, free: 7.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.3038, allocations: 203 kB / 386 MB, free: 7.164 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.3038, allocations: 36.36 kB / 386 MB, free: 7.133 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.323e-05/0.3039, allocations: 148 kB / 386.2 MB, free: 7.027 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.705e-05/0.304, allocations: 148.5 kB / 386.3 MB, free: 6.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.3041, allocations: 74.44 kB / 386.4 MB, free: 6.914 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.648e-05/0.3042, allocations: 339 kB / 386.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003114/0.3045, allocations: 110.5 kB / 386.8 MB, free: 6.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003367/0.3048, allocations: 167 kB / 387 MB, free: 6.504 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006284/0.3055, allocations: 289.8 kB / 387.3 MB, free: 6.367 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3055, allocations: 1.312 kB / 387.3 MB, free: 6.367 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008323/0.3063, allocations: 374 kB / 387.6 MB, free: 6.227 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.073e-05/0.3064, allocations: 9.891 kB / 387.7 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.3064, allocations: 1.344 kB / 387.7 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.524e-05/0.3064, allocations: 3.938 kB / 387.7 MB, free: 6.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000711/0.3071, allocations: 149.4 kB / 387.8 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.3071, allocations: 2.875 kB / 387.8 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002416/0.3074, allocations: 27.48 kB / 387.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.026e-05/0.3074, allocations: 12.94 kB / 387.9 MB, free: 6.203 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.0001263/0.3075, allocations: 153.7 kB / 388 MB, free: 6.062 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.17e-05/0.3076, allocations: 33.08 kB / 388 MB, free: 6.047 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.627e-05/0.3077, allocations: 32.36 kB / 388.1 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3077, allocations: 4.984 kB / 388.1 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.3077, allocations: 1.031 kB / 388.1 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3078, allocations: 2.656 kB / 388.1 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002305/0.3101, allocations: 1.34 MB / 389.4 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.3101, allocations: 6.75 kB / 389.4 MB, free: 5.168 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008897/0.311, allocations: 167.4 kB / 389.6 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.116e-06/0.311, allocations: 8.375 kB / 389.6 MB, free: 5.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.311, allocations: 15.11 kB / 389.6 MB, free: 5.152 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/0.3111, allocations: 8.062 kB / 389.6 MB, free: 5.148 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3111, allocations: 2.531 kB / 389.6 MB, free: 5.148 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001984/0.3131, allocations: 0.9452 MB / 390.6 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.3132, allocations: 134 kB / 390.7 MB, free: 4.512 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.155e-05/0.3132, allocations: 9.109 kB / 390.7 MB, free: 4.508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004223/0.3137, allocations: 47.72 kB / 390.7 MB, free: 4.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.3138, allocations: 43.78 kB / 390.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.082e-05/0.3138, allocations: 16.81 kB / 390.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.314, allocations: 153.6 kB / 391 MB, free: 4.387 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.314, allocations: 0 / 391 MB, free: 4.387 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004791/0.3145, allocations: 83.09 kB / 391 MB, free: 4.375 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.00212/0.3166, allocations: 1.506 MB / 392.5 MB, free: 3.316 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/0.3176, allocations: 373.2 kB / 392.9 MB, free: 3.23 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3177, allocations: 0 / 392.9 MB, free: 3.23 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006699/0.3183, allocations: 251.7 kB / 393.2 MB, free: 3.176 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000704/0.319, allocations: 73.77 kB / 393.2 MB, free: 3.148 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007686/0.3267, allocations: 3.85 MB / 397.1 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.327, allocations: 0.7676 MB / 397.8 MB, free: 100 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001907/0.3272, allocations: 45.72 kB / 397.9 MB, free: 84 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000175/0.3274, allocations: 98.41 kB / 398 MB, free: 16 kB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3274, allocations: 1.406 kB / 398 MB, free: 16 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03426/0.3617, allocations: 7.128 MB / 405.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.402/8.763, allocations: 9.141 kB / 405.1 MB, free: 13.33 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