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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001254/0.001254, allocations: 123 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 189.2 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 55.91 kB / 365.6 MB, free: 0.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09446/0.09595, allocations: 52.14 MB / 417.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003635/0.09959, allocations: 2.457 MB / 420.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.1009, allocations: 0.7405 MB / 421 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001151/0.101, allocations: 4 kB / 421 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001489/0.1012, allocations: 43.53 kB / 421 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000201/0.1014, allocations: 111.1 kB / 421.1 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003348/0.1017, allocations: 123.8 kB / 421.2 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005007/0.1022, allocations: 462.2 kB / 421.7 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.1024, allocations: 64.94 kB / 421.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002228/0.1026, allocations: 191.4 kB / 421.9 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002428/0.1028, allocations: 211.3 kB / 422.2 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.703e-05/0.1029, allocations: 36 kB / 422.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.806e-05/0.103, allocations: 36 kB / 422.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.551e-05/0.1031, allocations: 87.73 kB / 422.3 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001748/0.1033, allocations: 183.2 kB / 422.5 MB, free: 7.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004469/0.1037, allocations: 414.4 kB / 422.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1037, allocations: 0 / 422.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1037, allocations: 0 / 422.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.1037, allocations: 0 / 422.9 MB, free: 7.566 MB / 350.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.001573/0.1053, allocations: 0.6898 MB / 423.6 MB, free: 6.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.1053, allocations: 8.031 kB / 423.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.619e-05/0.1054, allocations: 58.73 kB / 423.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.81e-05/0.1055, allocations: 36.75 kB / 423.7 MB, free: 6.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000406/0.1059, allocations: 283.6 kB / 424 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001196/0.106, allocations: 92.08 kB / 424 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.198e-05/0.1061, allocations: 24 kB / 424.1 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000914/0.107, allocations: 375.2 kB / 424.4 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.579e-05/0.107, allocations: 19.89 kB / 424.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.195e-05/0.107, allocations: 4 kB / 424.5 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.1071, allocations: 11.94 kB / 424.5 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001262/0.1083, allocations: 391.5 kB / 424.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001333/0.1096, allocations: 0.9587 MB / 425.8 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.1108, allocations: 391.5 kB / 426.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006491/0.1114, allocations: 210.4 kB / 426.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.396e-05/0.1115, allocations: 4 kB / 426.4 MB, free: 3.836 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.1115, allocations: 42.98 kB / 426.4 MB, free: 3.785 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.793e-06/0.1115, allocations: 0 / 426.4 MB, free: 3.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.005221/0.1167, allocations: 2.328 MB / 428.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.1168, allocations: 106.8 kB / 428.9 MB, free: 1.066 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.117, allocations: 207.2 kB / 429.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.1171, allocations: 33.7 kB / 429.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.1172, allocations: 152.7 kB / 429.3 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.1173, allocations: 151 kB / 429.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/0.1175, allocations: 66.12 kB / 429.5 MB, free: 456 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1176, allocations: 338.8 kB / 429.8 MB, free: 108 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003537/0.118, allocations: 116.8 kB / 429.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003719/0.1184, allocations: 165.5 kB / 430.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000677/0.119, allocations: 290.3 kB / 430.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.119, allocations: 0 / 430.4 MB, free: 15.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008739/0.1199, allocations: 377.1 kB / 430.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.1199, allocations: 6.5 kB / 430.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.473e-06/0.1199, allocations: 4.094 kB / 430.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.12, allocations: 4 kB / 430.7 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007272/0.1207, allocations: 147.8 kB / 430.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.1207, allocations: 7.984 kB / 430.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.1209, allocations: 19.98 kB / 430.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.1209, allocations: 16 kB / 430.9 MB, free: 14.93 MB / 366.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.0001589/0.1211, allocations: 150.4 kB / 431.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.72e-05/0.1212, allocations: 27.8 kB / 431.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.683e-05/0.1213, allocations: 33.52 kB / 431.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.1213, allocations: 8 kB / 431.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.1213, allocations: 4 kB / 431.2 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.1213, allocations: 3.984 kB / 431.2 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002463/0.1238, allocations: 1.324 MB / 432.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.1238, allocations: 4 kB / 432.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008585/0.1246, allocations: 168 kB / 432.6 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.1246, allocations: 7.938 kB / 432.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.241e-05/0.1247, allocations: 19.92 kB / 432.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.1247, allocations: 7.938 kB / 432.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1247, allocations: 0 / 432.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00212/0.1268, allocations: 0.956 MB / 433.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001538/0.127, allocations: 129 kB / 433.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.461e-05/0.127, allocations: 15.92 kB / 433.8 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000429/0.1274, allocations: 47.95 kB / 433.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.1276, allocations: 35.95 kB / 433.9 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.962e-05/0.1276, allocations: 15.98 kB / 433.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001509/0.1277, allocations: 152.6 kB / 434 MB, free: 11.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1277, allocations: 0 / 434 MB, free: 11.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004551/0.1282, allocations: 80 kB / 434.1 MB, free: 11.61 MB / 366.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.002485/0.1307, allocations: 1.508 MB / 435.6 MB, free: 10.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001065/0.1317, allocations: 367.8 kB / 436 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.1317, allocations: 4 kB / 436 MB, free: 9.684 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006847/0.1324, allocations: 236 kB / 436.2 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007033/0.1331, allocations: 75.22 kB / 436.3 MB, free: 9.387 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008514/0.1416, allocations: 3.857 MB / 440.1 MB, free: 5.371 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004394/0.1421, allocations: 0.772 MB / 440.9 MB, free: 4.574 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001764/0.1423, allocations: 42.94 kB / 441 MB, free: 4.531 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002064/0.1425, allocations: 91.41 kB / 441 MB, free: 4.441 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.1425, allocations: 0 / 441 MB, free: 4.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2111/0.3536, allocations: 7.179 MB / 448.2 MB, free: 31.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.702/9.055, allocations: 14.69 kB / 448.2 MB, free: 31.61 MB / 366.1 MB " [Timeout remaining time 651] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv","/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) [Timeout 660] "Error: Could not read variable springDamper.w_rel in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv. Warning: Get data of variable springDamper.w_rel from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.498570643365383]