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.001538/0.001538, allocations: 124.8 kB / 17.79 MB, free: 5.266 MB / 14.72 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.001594/0.001594, allocations: 186.9 kB / 20.73 MB, free: 2.332 MB / 14.72 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 1.345/1.345, allocations: 225.6 MB / 249.1 MB, free: 3.602 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001428/0.001428, allocations: 47.92 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.09529, allocations: 52.14 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003653/0.09894, allocations: 2.461 MB / 420.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1003, allocations: 0.7327 MB / 421 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.1004, allocations: 7.938 kB / 421 MB, free: 9.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.1006, allocations: 39.59 kB / 421 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002105/0.1008, allocations: 107.1 kB / 421.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003477/0.1011, allocations: 127.8 kB / 421.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004964/0.1016, allocations: 474.2 kB / 421.7 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.1018, allocations: 56.95 kB / 421.8 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002482/0.102, allocations: 187.5 kB / 421.9 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002489/0.1023, allocations: 199.3 kB / 422.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.432e-05/0.1023, allocations: 36 kB / 422.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.229e-05/0.1024, allocations: 40 kB / 422.2 MB, free: 8.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.376e-05/0.1025, allocations: 91.66 kB / 422.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001834/0.1027, allocations: 183.2 kB / 422.5 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000459/0.1031, allocations: 414.4 kB / 422.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.1031, allocations: 0 / 422.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1031, allocations: 0 / 422.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.1032, allocations: 4 kB / 422.9 MB, free: 7.48 MB / 350.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.001527/0.1047, allocations: 0.682 MB / 423.6 MB, free: 6.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.1047, allocations: 12.03 kB / 423.6 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.678e-05/0.1048, allocations: 66.72 kB / 423.6 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.578e-05/0.1049, allocations: 32.75 kB / 423.7 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004615/0.1053, allocations: 279.6 kB / 424 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.1055, allocations: 88.08 kB / 424 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.619e-05/0.1055, allocations: 28 kB / 424.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008896/0.1064, allocations: 383.2 kB / 424.4 MB, free: 5.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.1065, allocations: 11.88 kB / 424.4 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.323e-05/0.1065, allocations: 15.94 kB / 424.5 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.1065, allocations: 4 kB / 424.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/0.1076, allocations: 399.5 kB / 424.9 MB, free: 5.387 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.109, allocations: 0.9509 MB / 425.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001012/0.11, allocations: 395.5 kB / 426.2 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005721/0.1106, allocations: 206.4 kB / 426.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.1106, allocations: 8 kB / 426.4 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.1106, allocations: 35 kB / 426.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.993e-06/0.1106, allocations: 4 kB / 426.4 MB, free: 3.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.004694/0.1153, allocations: 2.329 MB / 428.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.824e-05/0.1154, allocations: 106.8 kB / 428.9 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.1156, allocations: 207.2 kB / 429.1 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/0.1156, allocations: 30.08 kB / 429.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.1157, allocations: 156.7 kB / 429.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.1159, allocations: 150.7 kB / 429.4 MB, free: 440 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/0.116, allocations: 74.11 kB / 429.5 MB, free: 360 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1161, allocations: 338.8 kB / 429.8 MB, free: 12 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003251/0.1165, allocations: 108.8 kB / 429.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003407/0.1168, allocations: 173.4 kB / 430.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006256/0.1174, allocations: 289.5 kB / 430.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1174, allocations: 0 / 430.4 MB, free: 15.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008186/0.1182, allocations: 373.1 kB / 430.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1183, allocations: 4 kB / 430.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1183, allocations: 4 kB / 430.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.1183, allocations: 4 kB / 430.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006662/0.1189, allocations: 143.9 kB / 430.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.119, allocations: 4 kB / 430.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002191/0.1192, allocations: 35.97 kB / 430.9 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.76e-05/0.1192, allocations: 11.94 kB / 430.9 MB, free: 14.84 MB / 366.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.0001555/0.1193, allocations: 142.4 kB / 431.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.534e-05/0.1194, allocations: 31.8 kB / 431.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.673e-05/0.1195, allocations: 33.52 kB / 431.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.1195, allocations: 8 kB / 431.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1195, allocations: 0 / 431.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1195, allocations: 4 kB / 431.2 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.1219, allocations: 1.323 MB / 432.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1219, allocations: 4 kB / 432.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008071/0.1227, allocations: 172 kB / 432.6 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.1227, allocations: 7.938 kB / 432.7 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.56e-05/0.1227, allocations: 19.92 kB / 432.7 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.876e-06/0.1227, allocations: 11.94 kB / 432.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1227, allocations: 4 kB / 432.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001917/0.1246, allocations: 0.9521 MB / 433.6 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/0.1248, allocations: 125 kB / 433.8 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.785e-05/0.1248, allocations: 15.94 kB / 433.8 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003979/0.1252, allocations: 47.94 kB / 433.8 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.492e-05/0.1253, allocations: 39.95 kB / 433.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.721e-05/0.1254, allocations: 15.98 kB / 433.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001402/0.1255, allocations: 152.6 kB / 434 MB, free: 11.59 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1255, allocations: 0 / 434 MB, free: 11.59 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004282/0.1259, allocations: 84.09 kB / 434.1 MB, free: 11.51 MB / 366.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.00224/0.1282, allocations: 1.508 MB / 435.6 MB, free: 9.949 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009323/0.1291, allocations: 358.4 kB / 436 MB, free: 9.602 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.1291, allocations: 8.125 kB / 436 MB, free: 9.594 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006453/0.1297, allocations: 235.7 kB / 436.2 MB, free: 9.363 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006668/0.1304, allocations: 68 kB / 436.3 MB, free: 9.301 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007848/0.1383, allocations: 3.869 MB / 440.1 MB, free: 5.277 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.1387, allocations: 0.7682 MB / 440.9 MB, free: 4.484 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001824/0.1389, allocations: 38.95 kB / 440.9 MB, free: 4.445 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001909/0.1391, allocations: 99.39 kB / 441 MB, free: 4.348 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1391, allocations: 0 / 441 MB, free: 4.348 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1892/0.3283, allocations: 7.182 MB / 448.2 MB, free: 30.22 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.279/8.607, allocations: 13.8 kB / 448.2 MB, free: 30.21 MB / 366.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 11.116143601946533]