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.001554/0.001554, allocations: 108.2 kB / 21.18 MB, free: 0.5508 MB / 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.001751/0.001751, allocations: 204.2 kB / 24.49 MB, free: 3.91 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.337/1.337, allocations: 207.6 MB / 235.3 MB, free: 9.992 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.00175/0.00175, allocations: 56.34 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2658, allocations: 49.15 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003338/0.2691, allocations: 2.466 MB / 398.8 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.2703, allocations: 0.788 MB / 399.6 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000128/0.2705, allocations: 8.156 kB / 399.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001413/0.2706, allocations: 39.23 kB / 399.6 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001837/0.2708, allocations: 110.9 kB / 399.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003163/0.2711, allocations: 127.1 kB / 399.9 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004206/0.2715, allocations: 470.9 kB / 400.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.2717, allocations: 66 kB / 400.4 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.2719, allocations: 186.2 kB / 400.6 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002405/0.2722, allocations: 211.8 kB / 400.8 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.291e-05/0.2722, allocations: 37.88 kB / 400.8 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.625e-05/0.2723, allocations: 37.69 kB / 400.9 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.287e-05/0.2724, allocations: 86.33 kB / 400.9 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.2725, allocations: 183.1 kB / 401.1 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004527/0.273, allocations: 414.6 kB / 401.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.273, allocations: 1.562 kB / 401.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.273, allocations: 0 / 401.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.273, allocations: 0 / 401.5 MB, free: 5.742 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.001449/0.2744, allocations: 0.6113 MB / 402.1 MB, free: 5.336 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.2745, allocations: 14.91 kB / 402.2 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.699e-05/0.2745, allocations: 59.98 kB / 402.2 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.407e-05/0.2746, allocations: 35.94 kB / 402.2 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004132/0.275, allocations: 226.8 kB / 402.5 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.2752, allocations: 141.3 kB / 402.6 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.951e-05/0.2752, allocations: 29.52 kB / 402.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008872/0.2761, allocations: 378.7 kB / 403 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.487e-05/0.2761, allocations: 2.312 kB / 403 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.399e-05/0.2762, allocations: 12.86 kB / 403 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.2762, allocations: 6.781 kB / 403 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.2773, allocations: 395.7 kB / 403.4 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001317/0.2787, allocations: 0.9101 MB / 404.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/0.2797, allocations: 399.8 kB / 404.7 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005576/0.2802, allocations: 211 kB / 404.9 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.2803, allocations: 4.719 kB / 404.9 MB, free: 3.773 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.871e-05/0.2803, allocations: 44.56 kB / 405 MB, free: 3.723 MB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 1.433e-06/0.2803, allocations: 1.438 kB / 405 MB, free: 3.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=38): time 0.004127/0.2844, allocations: 1.867 MB / 406.8 MB, free: 2.625 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.2845, allocations: 113 kB / 406.9 MB, free: 2.496 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001713/0.2846, allocations: 197.3 kB / 407.1 MB, free: 2.371 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.2847, allocations: 39.02 kB / 407.2 MB, free: 2.328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.293e-05/0.2847, allocations: 148 kB / 407.3 MB, free: 2.199 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.769e-05/0.2848, allocations: 150.8 kB / 407.5 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.2849, allocations: 75.81 kB / 407.5 MB, free: 2.035 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.876e-05/0.285, allocations: 337.4 kB / 407.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002897/0.2853, allocations: 111 kB / 408 MB, free: 1.676 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003064/0.2856, allocations: 162.8 kB / 408.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005729/0.2861, allocations: 298.5 kB / 408.4 MB, free: 1.438 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2861, allocations: 4 kB / 408.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007603/0.2869, allocations: 374.4 kB / 408.8 MB, free: 1.281 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.2869, allocations: 5.188 kB / 408.8 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2869, allocations: 1.5 kB / 408.8 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.2869, allocations: 3.906 kB / 408.8 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006811/0.2876, allocations: 150.4 kB / 409 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.2876, allocations: 4.391 kB / 409 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.2879, allocations: 31.39 kB / 409 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.003e-05/0.2879, allocations: 13.94 kB / 409 MB, free: 1.25 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.0001227/0.288, allocations: 143.2 kB / 409.1 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.385e-05/0.2881, allocations: 29.83 kB / 409.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.52e-05/0.2882, allocations: 33.34 kB / 409.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.2882, allocations: 8.453 kB / 409.2 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.427e-06/0.2882, allocations: 0.9688 kB / 409.2 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.2882, allocations: 2.781 kB / 409.2 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002123/0.2903, allocations: 1.312 MB / 410.5 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.2903, allocations: 2.797 kB / 410.5 MB, free: 220 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007776/0.2911, allocations: 173 kB / 410.7 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.2911, allocations: 3.344 kB / 410.7 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.892e-05/0.2911, allocations: 13.69 kB / 410.7 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.638e-06/0.2911, allocations: 3.375 kB / 410.7 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.2911, allocations: 6.547 kB / 410.7 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00194/0.2931, allocations: 0.9536 MB / 411.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001401/0.2932, allocations: 59.52 kB / 411.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.658e-05/0.2933, allocations: 16.75 kB / 411.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004022/0.2937, allocations: 41.77 kB / 411.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.2938, allocations: 48.8 kB / 411.8 MB, free: 15.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.2938, allocations: 14.44 kB / 411.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000142/0.2939, allocations: 148.3 kB / 412 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2939, allocations: 0 / 412 MB, free: 15.29 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004654/0.2944, allocations: 78.97 kB / 412.1 MB, free: 15.28 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.002312/0.2967, allocations: 1.5 MB / 413.6 MB, free: 14.1 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009674/0.2977, allocations: 359.1 kB / 413.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.2977, allocations: 192 / 413.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006207/0.2983, allocations: 247.1 kB / 414.2 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007077/0.299, allocations: 66.48 kB / 414.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008134/0.3072, allocations: 3.869 MB / 418.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004235/0.3076, allocations: 0.7661 MB / 418.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002054/0.3078, allocations: 39.95 kB / 418.9 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.308, allocations: 96.92 kB / 419 MB, free: 10.16 MB / 334.1 MB Notification: Performance of SimCode: time 1.052e-06/0.308, allocations: 0 / 419 MB, free: 10.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03761/0.3456, allocations: 7.555 MB / 426.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.72, allocations: 0.9375 kB / 426.6 MB, free: 4.25 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.123286079004174]