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: translateModel(Modelica.Mechanics.Rotational.Examples.Backlash,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|elastoBacklash.phi_rel|elastoBacklash.w_rel|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash") translateModel(Modelica.Mechanics.Rotational.Examples.Backlash,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|elastoBacklash.phi_rel|elastoBacklash.w_rel|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 114.4 kB / 17.74 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.001529/0.001529, allocations: 187.1 kB / 18.66 MB, free: 4.441 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.594/1.594, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.001412/0.001412, allocations: 47.94 kB / 328.5 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1066, allocations: 46.62 MB / 375.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003836/0.1105, allocations: 2.448 MB / 377.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.112, allocations: 0.7763 MB / 378.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002268/0.1123, allocations: 8 kB / 378.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001828/0.1125, allocations: 39.53 kB / 378.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003261/0.1128, allocations: 107.1 kB / 378.5 MB, free: 1.199 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004376/0.1133, allocations: 123.8 kB / 378.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005309/0.1138, allocations: 470.2 kB / 379.1 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.114, allocations: 84.88 kB / 379.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003159/0.1143, allocations: 187.4 kB / 379.3 MB, free: 356 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003041/0.1147, allocations: 207.3 kB / 379.6 MB, free: 148 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.083e-05/0.1147, allocations: 36 kB / 379.6 MB, free: 112 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.793e-05/0.1148, allocations: 40 kB / 379.6 MB, free: 72 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.223/0.3378, allocations: 81.81 kB / 379.7 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004895/0.3384, allocations: 178.4 kB / 379.9 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009502/0.3393, allocations: 417.1 kB / 380.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3394, allocations: 1.219 kB / 380.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3394, allocations: 0 / 380.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.662e-05/0.3394, allocations: 0.6094 kB / 380.3 MB, free: 10.79 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.002417/0.3418, allocations: 0.6814 MB / 381 MB, free: 10.35 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.3419, allocations: 9.625 kB / 381 MB, free: 10.35 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.3421, allocations: 35.09 kB / 381 MB, free: 10.33 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006044/0.3427, allocations: 280.5 kB / 381.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.3428, allocations: 84.31 kB / 381.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.343, allocations: 27.19 kB / 381.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.3442, allocations: 381.9 kB / 381.8 MB, free: 9.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.761e-05/0.3442, allocations: 3.922 kB / 381.8 MB, free: 9.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.208e-05/0.3443, allocations: 12.66 kB / 381.8 MB, free: 9.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.733e-05/0.3443, allocations: 5.594 kB / 381.8 MB, free: 9.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.3458, allocations: 390.8 kB / 382.2 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.3475, allocations: 0.9631 MB / 383.1 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.3488, allocations: 400.4 kB / 383.5 MB, free: 9.418 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006865/0.3495, allocations: 221.5 kB / 383.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.393e-05/0.3496, allocations: 7.062 kB / 383.8 MB, free: 9.391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.685e-05/0.3496, allocations: 40.83 kB / 383.8 MB, free: 9.352 MB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 1.994e-06/0.3496, allocations: 0 / 383.8 MB, free: 9.352 MB / 318.1 MB Notification: Performance of matching and sorting (n=38): time 0.005328/0.355, allocations: 2.312 MB / 386.1 MB, free: 7.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.704e-05/0.355, allocations: 112.1 kB / 386.2 MB, free: 7.602 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004228/0.3555, allocations: 201.1 kB / 386.4 MB, free: 7.473 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.3555, allocations: 32.2 kB / 386.4 MB, free: 7.438 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.838e-05/0.3556, allocations: 151.6 kB / 386.6 MB, free: 7.305 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.3558, allocations: 133.9 kB / 386.7 MB, free: 7.203 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.3559, allocations: 73.98 kB / 386.8 MB, free: 7.16 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.99e-05/0.356, allocations: 337.5 kB / 387.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003899/0.3564, allocations: 110.1 kB / 387.2 MB, free: 6.801 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004324/0.3569, allocations: 170.7 kB / 387.4 MB, free: 6.711 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007498/0.3576, allocations: 295.5 kB / 387.7 MB, free: 6.566 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.3576, allocations: 1.25 kB / 387.7 MB, free: 6.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009751/0.3586, allocations: 370.5 kB / 388 MB, free: 6.426 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.383e-05/0.3587, allocations: 13.94 kB / 388.1 MB, free: 6.418 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/0.3587, allocations: 5.906 kB / 388.1 MB, free: 6.414 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.488e-05/0.3587, allocations: 3.281 kB / 388.1 MB, free: 6.414 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007653/0.3595, allocations: 149.7 kB / 388.2 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.3595, allocations: 3.969 kB / 388.2 MB, free: 6.406 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.3598, allocations: 27.17 kB / 388.2 MB, free: 6.398 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.681e-05/0.3598, allocations: 9.156 kB / 388.3 MB, free: 6.398 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.0001798/0.36, allocations: 152.8 kB / 388.4 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.3602, allocations: 25.66 kB / 388.4 MB, free: 6.246 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.081e-05/0.3602, allocations: 36.45 kB / 388.5 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.3603, allocations: 5.719 kB / 388.5 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.3603, allocations: 1.125 kB / 388.5 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.3603, allocations: 3.562 kB / 388.5 MB, free: 6.215 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0028/0.3631, allocations: 1.342 MB / 389.8 MB, free: 5.359 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.225e-06/0.3631, allocations: 2 kB / 389.8 MB, free: 5.359 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009241/0.364, allocations: 168.1 kB / 390 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.241e-05/0.3641, allocations: 3.625 kB / 390 MB, free: 5.355 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.234e-05/0.3641, allocations: 15.45 kB / 390 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.997e-06/0.3641, allocations: 4.109 kB / 390 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.3641, allocations: 16.97 kB / 390 MB, free: 5.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002239/0.3664, allocations: 0.9448 MB / 391 MB, free: 4.824 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/0.3666, allocations: 127.9 kB / 391.1 MB, free: 4.707 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.793e-05/0.3666, allocations: 15.09 kB / 391.1 MB, free: 4.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004589/0.3671, allocations: 50.31 kB / 391.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.3673, allocations: 39.17 kB / 391.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.745e-05/0.3673, allocations: 12.92 kB / 391.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001544/0.3675, allocations: 150 kB / 391.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3675, allocations: 0 / 391.4 MB, free: 4.582 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005659/0.368, allocations: 87.88 kB / 391.4 MB, free: 4.566 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.0001447/0.3682, allocations: 109.6 kB / 391.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001173/0.3694, allocations: 367 kB / 391.9 MB, free: 4.391 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3694, allocations: 1.031 kB / 391.9 MB, free: 4.391 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007218/0.3701, allocations: 258.9 kB / 392.2 MB, free: 4.328 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007581/0.3709, allocations: 66.08 kB / 392.2 MB, free: 4.301 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005471/0.3764, allocations: 1.427 MB / 393.6 MB, free: 3.664 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.3768, allocations: 0.767 MB / 394.4 MB, free: 2.957 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002447/0.377, allocations: 45.7 kB / 394.5 MB, free: 2.945 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.3772, allocations: 35.97 kB / 394.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3772, allocations: 0 / 394.5 MB, free: 2.938 MB / 318.1 MB Notification: Performance of Templates: time 0.01254/0.3897, allocations: 4.336 MB / 398.8 MB, free: 1.965 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins/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