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.00163/0.00163, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002011/0.002011, allocations: 212.7 kB / 23.73 MB, free: 4.164 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.412/1.412, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.001931/0.001931, allocations: 67.89 kB / 377.7 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2484, allocations: 53.41 MB / 431.1 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003895/0.2523, allocations: 2.289 MB / 433.4 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001736/0.2541, allocations: 0.7445 MB / 434.2 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002518/0.2543, allocations: 11.88 kB / 434.2 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001979/0.2545, allocations: 35.59 kB / 434.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003146/0.2548, allocations: 107.1 kB / 434.3 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004403/0.2553, allocations: 131.8 kB / 434.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005373/0.2558, allocations: 466.2 kB / 434.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.256, allocations: 57.09 kB / 434.9 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000256/0.2562, allocations: 191.4 kB / 435.1 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002453/0.2565, allocations: 191.2 kB / 435.3 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.409e-05/0.2565, allocations: 36 kB / 435.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.324e-05/0.2566, allocations: 40 kB / 435.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.146e-05/0.2567, allocations: 83.73 kB / 435.5 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001608/0.2569, allocations: 159.4 kB / 435.6 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004493/0.2573, allocations: 412.2 kB / 436 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2573, allocations: 0 / 436 MB, free: 1.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2573, allocations: 4 kB / 436 MB, free: 1.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.872e-06/0.2573, allocations: 0 / 436 MB, free: 1.484 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.001508/0.2588, allocations: 0.6144 MB / 436.7 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.2589, allocations: 11.98 kB / 436.7 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.502e-05/0.2589, allocations: 66.72 kB / 436.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.951e-05/0.259, allocations: 40.73 kB / 436.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003966/0.2594, allocations: 221.9 kB / 437 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.2596, allocations: 135.4 kB / 437.1 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.226e-05/0.2596, allocations: 28 kB / 437.1 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009145/0.2605, allocations: 378.5 kB / 437.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.2606, allocations: 7.984 kB / 437.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/0.2606, allocations: 12 kB / 437.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.2606, allocations: 4 kB / 437.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.2618, allocations: 398.9 kB / 437.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.2631, allocations: 0.8483 MB / 438.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/0.2642, allocations: 391.5 kB / 439.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006108/0.2648, allocations: 206.4 kB / 439.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.2648, allocations: 8.438 kB / 439.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.577e-05/0.2649, allocations: 42.44 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.573e-06/0.2649, allocations: 3.938 kB / 439.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.004651/0.2695, allocations: 1.869 MB / 441.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.401e-05/0.2696, allocations: 114.8 kB / 441.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002276/0.2698, allocations: 199.2 kB / 441.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.833e-05/0.2699, allocations: 37.69 kB / 441.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.27, allocations: 148.8 kB / 441.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/0.2701, allocations: 150.6 kB / 441.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001278/0.2702, allocations: 74.12 kB / 442 MB, free: 11.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.2704, allocations: 334.8 kB / 442.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003211/0.2707, allocations: 116.8 kB / 442.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003468/0.271, allocations: 165.5 kB / 442.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006542/0.2717, allocations: 288.2 kB / 442.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2717, allocations: 0 / 442.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008285/0.2725, allocations: 379.5 kB / 443.2 MB, free: 9.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.2725, allocations: 6.812 kB / 443.3 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.2726, allocations: 4 kB / 443.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.2726, allocations: 3.984 kB / 443.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006934/0.2733, allocations: 147.8 kB / 443.4 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.2733, allocations: 4 kB / 443.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/0.2735, allocations: 31.98 kB / 443.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.2735, allocations: 12 kB / 443.5 MB, free: 9.629 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.0001589/0.2737, allocations: 142.4 kB / 443.6 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.981e-05/0.2738, allocations: 32.73 kB / 443.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.866e-05/0.2738, allocations: 37.44 kB / 443.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.2739, allocations: 4 kB / 443.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.2739, allocations: 0 / 443.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.2739, allocations: 7.984 kB / 443.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002412/0.2763, allocations: 1.248 MB / 444.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.2763, allocations: 0 / 444.9 MB, free: 8.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008381/0.2771, allocations: 172 kB / 445.1 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.772e-06/0.2771, allocations: 4 kB / 445.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.448e-05/0.2772, allocations: 15.92 kB / 445.1 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.113e-06/0.2772, allocations: 4 kB / 445.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.2772, allocations: 4 kB / 445.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002089/0.2793, allocations: 0.9574 MB / 446.1 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.2794, allocations: 55.95 kB / 446.1 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.508e-05/0.2795, allocations: 15.94 kB / 446.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004118/0.2799, allocations: 43.94 kB / 446.2 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.28, allocations: 43.88 kB / 446.2 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.225e-05/0.28, allocations: 19.98 kB / 446.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001375/0.2801, allocations: 151.2 kB / 446.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2801, allocations: 0 / 446.4 MB, free: 6.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004427/0.2806, allocations: 84 kB / 446.5 MB, free: 6.469 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.002365/0.2829, allocations: 1.485 MB / 448 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.284, allocations: 363.5 kB / 448.3 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.284, allocations: 0 / 448.3 MB, free: 4.578 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000685/0.2846, allocations: 240 kB / 448.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007159/0.2854, allocations: 69.44 kB / 448.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008642/0.294, allocations: 3.865 MB / 452.5 MB, free: 264 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001818/0.2942, allocations: 160.2 kB / 452.6 MB, free: 84 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001983/0.2944, allocations: 38.97 kB / 452.7 MB, free: 44 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002295/0.2946, allocations: 99.45 kB / 452.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.2946, allocations: 0 / 452.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03685/0.3315, allocations: 8.128 MB / 460.9 MB, free: 7.969 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.93, allocations: 4 kB / 460.9 MB, free: 7.965 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.405413865111768]