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.001334/0.001334, allocations: 108.2 kB / 21.18 MB, free: 0.6992 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.00154/0.00154, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.447/1.447, allocations: 207.6 MB / 235.3 MB, free: 10.01 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.001867/0.001867, allocations: 47.92 kB / 347.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2693/0.2711, allocations: 49.17 MB / 396.3 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003431/0.2746, allocations: 2.452 MB / 398.8 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001347/0.2759, allocations: 0.7956 MB / 399.6 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.2761, allocations: 3.938 kB / 399.6 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001601/0.2762, allocations: 46.72 kB / 399.6 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000212/0.2765, allocations: 108.8 kB / 399.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003559/0.2768, allocations: 129.5 kB / 399.9 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004167/0.2772, allocations: 464.2 kB / 400.3 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.2774, allocations: 62.48 kB / 400.4 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002309/0.2776, allocations: 196.2 kB / 400.6 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002407/0.2779, allocations: 208 kB / 400.8 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.471e-05/0.2779, allocations: 37.28 kB / 400.8 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.465e-05/0.278, allocations: 42.25 kB / 400.9 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.896e-05/0.278, allocations: 82.94 kB / 400.9 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.2782, allocations: 183.4 kB / 401.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004998/0.2787, allocations: 415.9 kB / 401.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.2787, allocations: 4 kB / 401.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2787, allocations: 0 / 401.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.461e-05/0.2787, allocations: 1.406 kB / 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.001479/0.2802, allocations: 0.607 MB / 402.1 MB, free: 5.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.2802, allocations: 17.95 kB / 402.2 MB, free: 5.332 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.166e-05/0.2803, allocations: 62.2 kB / 402.2 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.042e-05/0.2804, allocations: 35.22 kB / 402.3 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003042/0.2807, allocations: 219.8 kB / 402.5 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001332/0.2808, allocations: 140.7 kB / 402.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.822e-05/0.2809, allocations: 28.39 kB / 402.6 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.2819, allocations: 378.1 kB / 403 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/0.2819, allocations: 6.031 kB / 403 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.023e-05/0.282, allocations: 11.25 kB / 403 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.282, allocations: 9.656 kB / 403 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.2831, allocations: 404.4 kB / 403.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.2843, allocations: 0.9009 MB / 404.3 MB, free: 4.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009773/0.2852, allocations: 398.9 kB / 404.7 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005535/0.2858, allocations: 203.5 kB / 404.9 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.115e-05/0.2858, allocations: 8.547 kB / 404.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.502e-05/0.2858, allocations: 45.36 kB / 405 MB, free: 3.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 1.874e-06/0.2858, allocations: 0 / 405 MB, free: 3.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=38): time 0.004254/0.2901, allocations: 1.876 MB / 406.8 MB, free: 2.625 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.2901, allocations: 113.6 kB / 407 MB, free: 2.496 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001892/0.2903, allocations: 195.9 kB / 407.1 MB, free: 2.371 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.891e-05/0.2904, allocations: 35.67 kB / 407.2 MB, free: 2.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.052e-05/0.2904, allocations: 152.9 kB / 407.3 MB, free: 2.199 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.239e-05/0.2905, allocations: 145.8 kB / 407.5 MB, free: 2.082 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.2906, allocations: 76.5 kB / 407.5 MB, free: 2.039 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.78e-05/0.2907, allocations: 337 kB / 407.9 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002909/0.291, allocations: 110.7 kB / 408 MB, free: 1.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.2913, allocations: 166.9 kB / 408.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005843/0.2919, allocations: 299.4 kB / 408.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2919, allocations: 1.375 kB / 408.4 MB, free: 1.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007329/0.2926, allocations: 365.2 kB / 408.8 MB, free: 1.289 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.2926, allocations: 5.641 kB / 408.8 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.2926, allocations: 1.312 kB / 408.8 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.2926, allocations: 8.75 kB / 408.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006658/0.2933, allocations: 142.7 kB / 408.9 MB, free: 1.277 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.2933, allocations: 8.281 kB / 409 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000218/0.2935, allocations: 27.22 kB / 409 MB, free: 1.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.927e-05/0.2936, allocations: 13.38 kB / 409 MB, free: 1.262 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.0001181/0.2937, allocations: 151.9 kB / 409.1 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.116e-05/0.2938, allocations: 36.25 kB / 409.2 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.147e-05/0.2938, allocations: 29.72 kB / 409.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.2938, allocations: 5.031 kB / 409.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.917e-06/0.2938, allocations: 2.812 kB / 409.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.2939, allocations: 1.734 kB / 409.2 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002092/0.2959, allocations: 1.31 MB / 410.5 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.296, allocations: 2.719 kB / 410.5 MB, free: 208 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007605/0.2967, allocations: 170.2 kB / 410.7 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.702e-06/0.2967, allocations: 4.625 kB / 410.7 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.2967, allocations: 13.09 kB / 410.7 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.2968, allocations: 10.7 kB / 410.7 MB, free: 136 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.2968, allocations: 6.906 kB / 410.7 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001934/0.2987, allocations: 0.9569 MB / 411.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.2988, allocations: 56.67 kB / 411.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.601e-05/0.2989, allocations: 16.34 kB / 411.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004173/0.2993, allocations: 45.67 kB / 411.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.2994, allocations: 41.2 kB / 411.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.89e-05/0.2994, allocations: 14.84 kB / 411.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000155/0.2996, allocations: 151.3 kB / 412 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2996, allocations: 0 / 412 MB, free: 15.27 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004656/0.3001, allocations: 79.88 kB / 412.1 MB, free: 15.26 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.002335/0.3024, allocations: 1.493 MB / 413.6 MB, free: 14.08 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.3034, allocations: 362 kB / 413.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.696e-06/0.3034, allocations: 0 / 413.9 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006281/0.3041, allocations: 243 kB / 414.2 MB, free: 13.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007246/0.3048, allocations: 74.27 kB / 414.2 MB, free: 13.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007956/0.3127, allocations: 3.86 MB / 418.1 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004336/0.3132, allocations: 0.7676 MB / 418.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001781/0.3133, allocations: 43.52 kB / 418.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.3135, allocations: 101.4 kB / 419 MB, free: 10.14 MB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3135, allocations: 0 / 419 MB, free: 10.14 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0387/0.3522, allocations: 7.544 MB / 426.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.88, allocations: 9 kB / 426.6 MB, free: 4.242 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.240730779012665]