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.000848/0.000848, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001246/0.001246, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.8381/0.8381, allocations: 173.4 MB / 200.4 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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 1.814e-06/1.814e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.293e-05/1.475e-05, allocations: 5.516 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003024/0.003039, allocations: 2.269 MB / 320.7 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.004396, allocations: 0.7093 MB / 321.4 MB, free: 3.355 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001437/0.004539, allocations: 11.94 kB / 321.4 MB, free: 3.344 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.004695, allocations: 39.58 kB / 321.5 MB, free: 3.305 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002129/0.004908, allocations: 122.9 kB / 321.6 MB, free: 3.184 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002737/0.005181, allocations: 135.6 kB / 321.7 MB, free: 3.051 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.005496, allocations: 482 kB / 322.2 MB, free: 2.578 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.005629, allocations: 57.12 kB / 322.2 MB, free: 2.516 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002361/0.005865, allocations: 271.4 kB / 322.5 MB, free: 2.25 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.006004, allocations: 167.6 kB / 322.7 MB, free: 2.086 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.313e-05/0.006047, allocations: 36 kB / 322.7 MB, free: 2.051 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.407e-05/0.006081, allocations: 40 kB / 322.7 MB, free: 2.012 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.512e-05/0.006136, allocations: 91.72 kB / 322.8 MB, free: 1.922 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.173e-05/0.006218, allocations: 135.7 kB / 323 MB, free: 1.789 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002926/0.006511, allocations: 430.8 kB / 323.4 MB, free: 1.367 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.155e-06/0.006513, allocations: 0 / 323.4 MB, free: 1.367 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.006514, allocations: 0 / 323.4 MB, free: 1.367 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.006519, allocations: 4 kB / 323.4 MB, free: 1.363 MB / 282.7 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.0009182/0.007437, allocations: 0.6176 MB / 324 MB, free: 0.7148 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.007476, allocations: 8.922 kB / 324 MB, free: 0.707 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.578e-05/0.007532, allocations: 62.72 kB / 324.1 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.89e-05/0.007591, allocations: 40.7 kB / 324.1 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002957/0.007887, allocations: 209.2 kB / 324.3 MB, free: 376 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.007987, allocations: 131.9 kB / 324.4 MB, free: 220 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.599e-05/0.008033, allocations: 32.36 kB / 324.5 MB, free: 188 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005274/0.00856, allocations: 378.3 kB / 324.8 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.008579, allocations: 11.94 kB / 324.9 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.319e-05/0.008602, allocations: 8 kB / 324.9 MB, free: 15.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.845e-06/0.00861, allocations: 8 kB / 324.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006418/0.009252, allocations: 387.6 kB / 325.2 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008437/0.0101, allocations: 0.8449 MB / 326.1 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005929/0.01069, allocations: 403.5 kB / 326.5 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003239/0.01101, allocations: 210.4 kB / 326.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.042e-05/0.01103, allocations: 7.984 kB / 326.7 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.01105, allocations: 34.56 kB / 326.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 1.513e-06/0.01105, allocations: 0 / 326.7 MB, free: 13.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.002555/0.01361, allocations: 1.874 MB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.89e-05/0.01366, allocations: 114.8 kB / 328.7 MB, free: 11.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.0138, allocations: 207.2 kB / 328.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.01382, allocations: 37.69 kB / 329 MB, free: 11.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.223e-05/0.01389, allocations: 148.8 kB / 329.1 MB, free: 11.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.28e-05/0.01397, allocations: 138.8 kB / 329.2 MB, free: 11.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.368e-05/0.01405, allocations: 86.12 kB / 329.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.849e-05/0.01414, allocations: 338.8 kB / 329.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.01432, allocations: 104.9 kB / 329.8 MB, free: 10.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.01451, allocations: 170.1 kB / 329.9 MB, free: 10.39 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003617/0.01487, allocations: 284.4 kB / 330.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.01487, allocations: 3.938 kB / 330.2 MB, free: 10.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004534/0.01532, allocations: 369.2 kB / 330.6 MB, free: 9.723 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.01533, allocations: 8 kB / 330.6 MB, free: 9.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.01534, allocations: 7.875 kB / 330.6 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.01535, allocations: 4.094 kB / 330.6 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003376/0.01569, allocations: 144.8 kB / 330.7 MB, free: 9.562 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.0157, allocations: 8 kB / 330.7 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.0158, allocations: 27.97 kB / 330.8 MB, free: 9.527 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.302e-05/0.01582, allocations: 16 kB / 330.8 MB, free: 9.512 MB / 298.7 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 9.667e-05/0.01591, allocations: 141.8 kB / 330.9 MB, free: 9.363 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.215e-05/0.01597, allocations: 27.81 kB / 330.9 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.36e-05/0.01601, allocations: 41.39 kB / 331 MB, free: 9.301 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.01601, allocations: 8 kB / 331 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.01602, allocations: 0 / 331 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.01602, allocations: 0 / 331 MB, free: 9.293 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.01738, allocations: 1.237 MB / 332.2 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.01738, allocations: 8 kB / 332.2 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004083/0.01779, allocations: 172 kB / 332.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.01779, allocations: 4 kB / 332.4 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.01781, allocations: 8 kB / 332.4 MB, free: 7.777 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.01781, allocations: 8 kB / 332.4 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.01782, allocations: 7.922 kB / 332.4 MB, free: 7.762 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.01895, allocations: 0.949 MB / 333.4 MB, free: 6.773 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.224e-05/0.01903, allocations: 55.83 kB / 333.4 MB, free: 6.719 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.834e-05/0.01906, allocations: 12 kB / 333.4 MB, free: 6.707 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.01926, allocations: 43.95 kB / 333.5 MB, free: 6.664 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.499e-05/0.01934, allocations: 51.73 kB / 333.5 MB, free: 6.613 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/0.01935, allocations: 16 kB / 333.6 MB, free: 6.598 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.668e-05/0.01944, allocations: 152.6 kB / 333.7 MB, free: 6.449 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01944, allocations: 0 / 333.7 MB, free: 6.449 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002883/0.01973, allocations: 80 kB / 333.8 MB, free: 6.371 MB / 298.7 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.001309/0.02104, allocations: 1.497 MB / 335.3 MB, free: 4.824 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005443/0.02158, allocations: 359.2 kB / 335.6 MB, free: 4.477 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.02159, allocations: 0 / 335.6 MB, free: 4.477 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004566/0.02204, allocations: 239.6 kB / 335.9 MB, free: 4.242 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004302/0.02247, allocations: 80.36 kB / 335.9 MB, free: 4.172 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004347/0.02682, allocations: 3.746 MB / 339.7 MB, free: 268 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001073/0.02693, allocations: 160.3 kB / 339.8 MB, free: 92 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.02704, allocations: 34.97 kB / 339.9 MB, free: 60 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.02718, allocations: 96.53 kB / 340 MB, free: 15.96 MB / 314.7 MB Notification: Performance of SimCode: time 5.91e-07/0.02718, allocations: 0 / 340 MB, free: 15.96 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02157/0.04875, allocations: 8.265 MB / 348.2 MB, free: 7.871 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.914/6.963, allocations: 2.969 kB / 348.2 MB, free: 7.871 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins/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] "" Variables in the reference:time,elastoBacklash.phi_rel,elastoBacklash.w_rel,springDamper.phi_rel,springDamper.w_rel Variables in the result:time,elastoBacklash.phi_rel,elastoBacklash.w_rel,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,springDamper.phi_rel [Calling sys.exit(0), Time elapsed: 8.661386522464454]