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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001899/0.001899, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002351/0.002351, allocations: 213.5 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 207.7 MB / 235.3 MB, free: 9.801 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001821, allocations: 55.92 kB / 347.2 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3101, allocations: 49.15 MB / 396.3 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.004701/0.3148, allocations: 2.282 MB / 398.6 MB, free: 7.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.3166, allocations: 0.7553 MB / 399.4 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.3168, allocations: 13.44 kB / 399.4 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001977/0.317, allocations: 45.47 kB / 399.4 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003448/0.3173, allocations: 104.1 kB / 399.5 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004809/0.3178, allocations: 131.3 kB / 399.7 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005636/0.3184, allocations: 458.4 kB / 400.1 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.3186, allocations: 75.09 kB / 400.2 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002965/0.3189, allocations: 189.5 kB / 400.4 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003269/0.3192, allocations: 179.6 kB / 400.5 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.3193, allocations: 36.97 kB / 400.6 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001025/0.3194, allocations: 37.94 kB / 400.6 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001005/0.3195, allocations: 94.83 kB / 400.7 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.3197, allocations: 151.1 kB / 400.9 MB, free: 6.074 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006155/0.3203, allocations: 416.8 kB / 401.3 MB, free: 5.914 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3203, allocations: 0 / 401.3 MB, free: 5.914 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.3203, allocations: 0 / 401.3 MB, free: 5.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.258e-06/0.3203, allocations: 0 / 401.3 MB, free: 5.914 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.002016/0.3224, allocations: 0.6166 MB / 401.9 MB, free: 5.504 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.3224, allocations: 13.2 kB / 401.9 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.579e-05/0.3225, allocations: 64.14 kB / 402 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.3226, allocations: 34.5 kB / 402 MB, free: 5.43 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004714/0.3231, allocations: 223.6 kB / 402.2 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.3232, allocations: 148 kB / 402.3 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.252e-05/0.3233, allocations: 29.7 kB / 402.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.3245, allocations: 373.8 kB / 402.7 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.56e-05/0.3246, allocations: 2.344 kB / 402.7 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.232e-05/0.3246, allocations: 15.09 kB / 402.8 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.3246, allocations: 5.781 kB / 402.8 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/0.3264, allocations: 399.1 kB / 403.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00189/0.3282, allocations: 0.8303 MB / 404 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.3297, allocations: 394.5 kB / 404.4 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008506/0.3305, allocations: 207.7 kB / 404.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.3306, allocations: 4.188 kB / 404.6 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.136e-05/0.3306, allocations: 43.36 kB / 404.6 MB, free: 3.922 MB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 3.447e-06/0.3306, allocations: 3.938 kB / 404.6 MB, free: 3.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=38): time 0.005632/0.3362, allocations: 1.872 MB / 406.5 MB, free: 2.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.3363, allocations: 110.6 kB / 406.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.3365, allocations: 210 kB / 406.8 MB, free: 2.555 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.3365, allocations: 31.11 kB / 406.8 MB, free: 2.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.499e-05/0.3366, allocations: 149.7 kB / 407 MB, free: 2.391 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.138e-05/0.3367, allocations: 146.1 kB / 407.1 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.3368, allocations: 72.91 kB / 407.2 MB, free: 2.234 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.021e-05/0.3369, allocations: 338 kB / 407.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003043/0.3372, allocations: 108.8 kB / 407.6 MB, free: 1.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003092/0.3375, allocations: 172.7 kB / 407.8 MB, free: 1.781 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006053/0.3381, allocations: 297.6 kB / 408.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3381, allocations: 1.375 kB / 408.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007811/0.3389, allocations: 369.6 kB / 408.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.3389, allocations: 5.531 kB / 408.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3389, allocations: 1.875 kB / 408.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.3389, allocations: 2.344 kB / 408.5 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000685/0.3396, allocations: 148.5 kB / 408.6 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.3396, allocations: 3.391 kB / 408.6 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.3398, allocations: 27.8 kB / 408.6 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.3399, allocations: 21.47 kB / 408.7 MB, free: 1.449 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.0001186/0.34, allocations: 142.6 kB / 408.8 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.766e-05/0.3401, allocations: 34 kB / 408.8 MB, free: 1.293 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.217e-05/0.3401, allocations: 33.14 kB / 408.9 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.3402, allocations: 9.922 kB / 408.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.3402, allocations: 1.344 kB / 408.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-06/0.3402, allocations: 2.109 kB / 408.9 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002376/0.3425, allocations: 1.255 MB / 410.1 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.3426, allocations: 1.281 kB / 410.1 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009248/0.3435, allocations: 166.7 kB / 410.3 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.507e-06/0.3435, allocations: 3.844 kB / 410.3 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.802e-05/0.3435, allocations: 19.14 kB / 410.3 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/0.3435, allocations: 8.172 kB / 410.3 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3435, allocations: 2.5 kB / 410.3 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00201/0.3455, allocations: 0.9565 MB / 411.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001758/0.3457, allocations: 53.03 kB / 411.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.932e-05/0.3458, allocations: 15.81 kB / 411.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004196/0.3462, allocations: 41.86 kB / 411.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.3463, allocations: 42.39 kB / 411.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.773e-05/0.3463, allocations: 10.06 kB / 411.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001653/0.3465, allocations: 156.3 kB / 411.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3465, allocations: 0 / 411.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005115/0.347, allocations: 82.69 kB / 411.7 MB, free: 15.56 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.002498/0.3495, allocations: 1.505 MB / 413.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.3506, allocations: 349.2 kB / 413.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.3506, allocations: 3.938 kB / 413.5 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007329/0.3513, allocations: 248.2 kB / 413.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000756/0.3521, allocations: 67.56 kB / 413.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008654/0.3607, allocations: 3.87 MB / 417.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001921/0.3609, allocations: 160.5 kB / 417.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002417/0.3611, allocations: 35.66 kB / 417.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002026/0.3613, allocations: 101.5 kB / 418 MB, free: 11.07 MB / 334.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3613, allocations: 0 / 418 MB, free: 11.07 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0387/0.4, allocations: 8.114 MB / 426.1 MB, free: 4.477 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.04, allocations: 19.94 kB / 426.1 MB, free: 4.457 MB / 334.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable springDamper.w_rel in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv. Warning: Get data of variable springDamper.w_rel from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.576274733059108]