Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.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.0008463/0.0008463, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 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.001048/0.001048, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.8996/0.8996, allocations: 177 MB / 204.1 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2442/0.2442, allocations: 34.24 MB / 294.8 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 442.1 MB, free: 1.574 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.485e-05/2.664e-05, allocations: 7.766 kB / 442.1 MB, free: 1.566 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.1727/0.1727, allocations: 3.745 MB / 445.9 MB, free: 41.96 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.1743, allocations: 1.437 MB / 447.3 MB, free: 41.47 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000208/0.1745, allocations: 16.72 kB / 447.3 MB, free: 41.46 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003208/0.1749, allocations: 135 kB / 447.5 MB, free: 41.38 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003706/0.1752, allocations: 297.2 kB / 447.8 MB, free: 41.21 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004059/0.1756, allocations: 368.7 kB / 448.1 MB, free: 41.12 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004914/0.1761, allocations: 1.121 MB / 449.2 MB, free: 40.58 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.1763, allocations: 121.5 kB / 449.4 MB, free: 40.51 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004562/0.1768, allocations: 0.6577 MB / 450 MB, free: 40.23 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002994/0.1771, allocations: 424.6 kB / 450.4 MB, free: 40.1 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.023e-05/0.1771, allocations: 89.19 kB / 450.5 MB, free: 40.09 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.1773, allocations: 152.8 kB / 450.7 MB, free: 40.07 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001481/0.1775, allocations: 233.2 kB / 450.9 MB, free: 39.92 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001613/0.1776, allocations: 305 kB / 451.2 MB, free: 39.77 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005978/0.1782, allocations: 1.087 MB / 452.3 MB, free: 39.33 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1782, allocations: 0 / 452.3 MB, free: 39.33 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1782, allocations: 0 / 452.3 MB, free: 39.33 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.1782, allocations: 0 / 452.3 MB, free: 39.33 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.001237/0.1795, allocations: 1.098 MB / 453.4 MB, free: 38.65 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1795, allocations: 8.656 kB / 453.4 MB, free: 38.65 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.283e-05/0.1796, allocations: 103.9 kB / 453.5 MB, free: 38.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002757/0.1799, allocations: 127.2 kB / 453.6 MB, free: 38.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005101/0.1804, allocations: 415.7 kB / 454 MB, free: 38.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.649e-05/0.1804, allocations: 53.59 kB / 454.1 MB, free: 38.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.979e-05/0.1805, allocations: 65.73 kB / 454.1 MB, free: 38.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008627/0.1814, allocations: 0.8243 MB / 455 MB, free: 37.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.1814, allocations: 16.47 kB / 455 MB, free: 37.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.926e-05/0.1814, allocations: 25.19 kB / 455 MB, free: 37.79 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.168e-05/0.1814, allocations: 14.28 kB / 455 MB, free: 37.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009251/0.1824, allocations: 0.7387 MB / 455.7 MB, free: 37.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002272/0.1846, allocations: 2.336 MB / 458.1 MB, free: 36 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008662/0.1855, allocations: 0.6273 MB / 458.7 MB, free: 35.7 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003946/0.1859, allocations: 358.4 kB / 459.1 MB, free: 35.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.56e-05/0.1859, allocations: 9.562 kB / 459.1 MB, free: 35.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.186, allocations: 49.25 kB / 459.1 MB, free: 35.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=79): time 2.575e-06/0.186, allocations: 0 / 459.1 MB, free: 35.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=83): time 0.004155/0.1901, allocations: 2.94 MB / 462.1 MB, free: 34.04 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.1902, allocations: 145.5 kB / 462.2 MB, free: 33.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.1905, allocations: 479.2 kB / 462.7 MB, free: 33.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.742e-05/0.1905, allocations: 54.36 kB / 462.7 MB, free: 33.61 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.1906, allocations: 279.5 kB / 463 MB, free: 33.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/0.1908, allocations: 303.4 kB / 463.3 MB, free: 33.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.1909, allocations: 178 kB / 463.5 MB, free: 33.05 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.744e-05/0.191, allocations: 368.1 kB / 463.8 MB, free: 32.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004546/0.1914, allocations: 360.3 kB / 464.2 MB, free: 32.59 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005168/0.192, allocations: 0.516 MB / 464.7 MB, free: 32.28 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007735/0.1927, allocations: 0.7066 MB / 465.4 MB, free: 31.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1927, allocations: 0.8438 kB / 465.4 MB, free: 31.88 MB / 410.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001494/0.1942, allocations: 1.193 MB / 466.6 MB, free: 31.38 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.1943, allocations: 10.41 kB / 466.6 MB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.1943, allocations: 6.188 kB / 466.6 MB, free: 31.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008003/0.1951, allocations: 0.5744 MB / 467.2 MB, free: 31.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000279/0.1953, allocations: 149.9 kB / 467.3 MB, free: 31.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002186/0.1975, allocations: 3.735 MB / 471.1 MB, free: 27.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006007/0.1981, allocations: 147.3 kB / 471.2 MB, free: 27.79 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.868e-05/0.1982, allocations: 38.78 kB / 471.2 MB, free: 27.78 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,bearingFriction.free,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,8), (1,10), (1,6), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003599/0.1985, allocations: 220.9 kB / 471.5 MB, free: 27.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001402/0.1987, allocations: 73.5 kB / 471.5 MB, free: 27.56 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.23e-05/0.1988, allocations: 91.53 kB / 471.6 MB, free: 27.49 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.1988, allocations: 9.688 kB / 471.6 MB, free: 27.49 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.1988, allocations: 0 / 471.6 MB, free: 27.49 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.1988, allocations: 12.44 kB / 471.6 MB, free: 27.49 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002313/0.2011, allocations: 2.001 MB / 473.6 MB, free: 26.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2011, allocations: 3.938 kB / 473.6 MB, free: 26.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002789/0.2014, allocations: 119.8 kB / 473.8 MB, free: 26.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006423/0.202, allocations: 0.5263 MB / 474.3 MB, free: 26.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.083e-05/0.2021, allocations: 35.45 kB / 474.3 MB, free: 26.16 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001673/0.2038, allocations: 3.541 MB / 477.9 MB, free: 23.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.2038, allocations: 0 / 477.9 MB, free: 23.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.2055, allocations: 1.72 MB / 479.6 MB, free: 22.09 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002101/0.2057, allocations: 155.4 kB / 479.7 MB, free: 22.01 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.392e-05/0.2058, allocations: 31.59 kB / 479.8 MB, free: 21.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.2062, allocations: 121.9 kB / 479.9 MB, free: 21.97 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002625/0.2065, allocations: 197.5 kB / 480.1 MB, free: 21.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.902e-05/0.2065, allocations: 38.06 kB / 480.1 MB, free: 21.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002219/0.2067, allocations: 328.2 kB / 480.4 MB, free: 21.78 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2067, allocations: 0 / 480.4 MB, free: 21.78 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006406/0.2074, allocations: 208.2 kB / 480.6 MB, free: 21.75 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,6), (1,10), (1,7), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002565/0.2099, allocations: 2.573 MB / 483.2 MB, free: 20.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.2113, allocations: 0.9845 MB / 484.2 MB, free: 19.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2113, allocations: 0 / 484.2 MB, free: 19.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006833/0.212, allocations: 0.6027 MB / 484.8 MB, free: 19.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006671/0.2127, allocations: 136.5 kB / 484.9 MB, free: 19.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007744/0.2204, allocations: 7.139 MB / 492.1 MB, free: 15.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002429/0.2207, allocations: 342.3 kB / 492.4 MB, free: 15.28 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002413/0.2209, allocations: 77.72 kB / 492.5 MB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000224/0.2211, allocations: 243.5 kB / 492.7 MB, free: 15.08 MB / 410.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2211, allocations: 0 / 492.7 MB, free: 15.08 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03906/0.2602, allocations: 21.09 MB / 0.5018 GB, free: 8.113 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.164/8.424, allocations: 19.12 kB / 0.5018 GB, free: 8.098 MB / 410.7 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219124 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Rotational.TestFriction.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: 10.563592080026865]