Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 114 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001488/0.001488, allocations: 213.4 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 230.5 MB / 257.4 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 59.89 kB / 377.8 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2659, allocations: 53.42 MB / 431.2 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003577/0.2694, allocations: 2.456 MB / 433.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001373/0.2708, allocations: 0.7873 MB / 434.4 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2709, allocations: 11.94 kB / 434.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001463/0.2711, allocations: 35.59 kB / 434.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002154/0.2713, allocations: 111.1 kB / 434.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003426/0.2717, allocations: 123.8 kB / 434.7 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004926/0.2721, allocations: 470.2 kB / 435.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000194/0.2723, allocations: 69.08 kB / 435.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002534/0.2726, allocations: 191.5 kB / 435.4 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002701/0.2729, allocations: 207.2 kB / 435.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.125e-05/0.2729, allocations: 40 kB / 435.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.534e-05/0.273, allocations: 36 kB / 435.7 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.4e-05/0.2731, allocations: 87.73 kB / 435.8 MB, free: 2.098 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001732/0.2732, allocations: 171.3 kB / 435.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004638/0.2737, allocations: 418.8 kB / 436.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2737, allocations: 3.938 kB / 436.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2737, allocations: 0 / 436.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.2737, allocations: 0 / 436.4 MB, free: 1.52 MB / 334.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.001504/0.2752, allocations: 0.6183 MB / 437 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.2753, allocations: 8.031 kB / 437 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.755e-05/0.2753, allocations: 62.72 kB / 437 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.608e-05/0.2754, allocations: 36.75 kB / 437.1 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.2758, allocations: 217.9 kB / 437.3 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001409/0.276, allocations: 135.4 kB / 437.4 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.848e-05/0.276, allocations: 31.98 kB / 437.5 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008825/0.2769, allocations: 374.5 kB / 437.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.2769, allocations: 7.938 kB / 437.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.277, allocations: 8 kB / 437.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-06/0.277, allocations: 8 kB / 437.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.2781, allocations: 395.1 kB / 438.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.2795, allocations: 0.9342 MB / 439.2 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.2805, allocations: 391.5 kB / 439.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005823/0.2811, allocations: 214.4 kB / 439.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.2811, allocations: 4 kB / 439.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.2811, allocations: 38.5 kB / 439.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 3.526e-06/0.2812, allocations: 3.984 kB / 439.8 MB, free: 13.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.004508/0.2857, allocations: 1.877 MB / 441.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.116e-05/0.2857, allocations: 110.8 kB / 441.8 MB, free: 11.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002078/0.2859, allocations: 204.2 kB / 442 MB, free: 11.51 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/0.286, allocations: 33.7 kB / 442 MB, free: 11.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.2861, allocations: 148.8 kB / 442.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.2862, allocations: 142.8 kB / 442.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.2863, allocations: 78.06 kB / 442.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2865, allocations: 338.8 kB / 442.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003028/0.2868, allocations: 112.8 kB / 442.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003269/0.2871, allocations: 165.5 kB / 443 MB, free: 10.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006206/0.2877, allocations: 288.1 kB / 443.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2877, allocations: 0 / 443.3 MB, free: 10.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008268/0.2885, allocations: 372.9 kB / 443.6 MB, free: 9.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.2886, allocations: 14.28 kB / 443.6 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.2886, allocations: 0 / 443.6 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.2886, allocations: 4 kB / 443.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006754/0.2893, allocations: 151.8 kB / 443.8 MB, free: 9.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.2893, allocations: 7.984 kB / 443.8 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.2895, allocations: 23.97 kB / 443.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.2895, allocations: 20 kB / 443.8 MB, free: 9.586 MB / 350.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.0001521/0.2897, allocations: 141.8 kB / 444 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.998e-05/0.2898, allocations: 31.75 kB / 444 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.085e-05/0.2898, allocations: 33.45 kB / 444 MB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.2898, allocations: 8 kB / 444.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.2899, allocations: 0 / 444.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.2899, allocations: 3.984 kB / 444.1 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002356/0.2922, allocations: 1.299 MB / 445.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.2922, allocations: 4 kB / 445.4 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008122/0.293, allocations: 168 kB / 445.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.625e-06/0.293, allocations: 4 kB / 445.5 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.473e-05/0.2931, allocations: 19.92 kB / 445.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.2931, allocations: 8.094 kB / 445.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/0.2931, allocations: 7.938 kB / 445.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.295, allocations: 0.9524 MB / 446.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001334/0.2951, allocations: 51.83 kB / 446.6 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.144e-05/0.2952, allocations: 11.94 kB / 446.6 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004029/0.2956, allocations: 55.94 kB / 446.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.853e-05/0.2957, allocations: 39.88 kB / 446.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.621e-05/0.2957, allocations: 11.98 kB / 446.7 MB, free: 6.609 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001357/0.2959, allocations: 155.5 kB / 446.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2959, allocations: 4 kB / 446.8 MB, free: 6.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004407/0.2963, allocations: 84 kB / 446.9 MB, free: 6.371 MB / 350.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.002272/0.2986, allocations: 1.493 MB / 448.4 MB, free: 4.828 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009764/0.2996, allocations: 359 kB / 448.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2996, allocations: 0 / 448.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006526/0.3002, allocations: 240 kB / 449 MB, free: 4.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006815/0.3009, allocations: 64.61 kB / 449.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008149/0.309, allocations: 3.869 MB / 452.9 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.3095, allocations: 0.7643 MB / 453.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001776/0.3096, allocations: 42.94 kB / 453.7 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001887/0.3098, allocations: 99.41 kB / 453.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3098, allocations: 0 / 453.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03538/0.3452, allocations: 7.538 MB / 461.4 MB, free: 7.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.76, allocations: 8.547 kB / 461.4 MB, free: 7.824 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv. Warning: Get data of variable springDamper.w_rel from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.288561471999856]