Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.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.0009341/0.0009341, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0008171/0.0008171, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8706/0.8706, allocations: 177.2 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.237/0.237, allocations: 34.25 MB / 294.9 MB, free: 0.6992 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 3.938 kB / 442.2 MB, free: 1.676 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.064e-05/2.28e-05, allocations: 4.25 kB / 442.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.1743/0.1743, allocations: 3.739 MB / 445.9 MB, free: 42.53 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001981/0.1763, allocations: 1.442 MB / 447.3 MB, free: 41.87 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003748/0.1767, allocations: 19.56 kB / 447.4 MB, free: 41.86 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004026/0.1771, allocations: 129.7 kB / 447.5 MB, free: 41.78 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005158/0.1776, allocations: 300.2 kB / 447.8 MB, free: 41.59 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000584/0.1782, allocations: 358.5 kB / 448.1 MB, free: 41.39 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000677/0.1789, allocations: 1.127 MB / 449.3 MB, free: 40.85 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002468/0.1791, allocations: 125.2 kB / 449.4 MB, free: 40.78 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006619/0.1798, allocations: 0.6523 MB / 450 MB, free: 40.5 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003778/0.1802, allocations: 431.5 kB / 450.4 MB, free: 40.36 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.488e-05/0.1802, allocations: 86.89 kB / 450.5 MB, free: 40.36 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001839/0.1804, allocations: 142.4 kB / 450.7 MB, free: 40.34 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.1806, allocations: 228.6 kB / 450.9 MB, free: 40.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001769/0.1808, allocations: 310.8 kB / 451.2 MB, free: 40.05 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007271/0.1815, allocations: 1.091 MB / 452.3 MB, free: 39.6 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1815, allocations: 0 / 452.3 MB, free: 39.6 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1815, allocations: 0 / 452.3 MB, free: 39.6 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.1815, allocations: 0 / 452.3 MB, free: 39.6 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.001349/0.1829, allocations: 1.098 MB / 453.4 MB, free: 38.92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.1829, allocations: 11.44 kB / 453.4 MB, free: 38.92 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.671e-05/0.183, allocations: 101.1 kB / 453.5 MB, free: 38.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002889/0.1833, allocations: 131.3 kB / 453.6 MB, free: 38.79 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005133/0.1838, allocations: 418.6 kB / 454 MB, free: 38.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.572e-05/0.1838, allocations: 48.97 kB / 454.1 MB, free: 38.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.48e-05/0.1839, allocations: 69.2 kB / 454.1 MB, free: 38.45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008261/0.1847, allocations: 0.8193 MB / 455 MB, free: 38.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.1847, allocations: 13.92 kB / 455 MB, free: 38.08 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.44e-05/0.1848, allocations: 25.69 kB / 455 MB, free: 38.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1848, allocations: 17.34 kB / 455 MB, free: 38.06 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008622/0.1857, allocations: 0.7327 MB / 455.8 MB, free: 37.83 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.1878, allocations: 2.34 MB / 458.1 MB, free: 36.27 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008996/0.1887, allocations: 0.6347 MB / 458.7 MB, free: 35.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004004/0.1891, allocations: 349.2 kB / 459.1 MB, free: 35.82 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.1892, allocations: 9.594 kB / 459.1 MB, free: 35.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.1892, allocations: 52.03 kB / 459.1 MB, free: 35.77 MB / 410.7 MB Notification: Performance of pre-optimization done (n=79): time 2.524e-06/0.1892, allocations: 4 kB / 459.1 MB, free: 35.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=83): time 0.004043/0.1932, allocations: 2.94 MB / 462.1 MB, free: 34.31 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.662e-05/0.1933, allocations: 142.1 kB / 462.2 MB, free: 34.15 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.1936, allocations: 481.2 kB / 462.7 MB, free: 33.93 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.603e-05/0.1936, allocations: 51.08 kB / 462.7 MB, free: 33.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.1937, allocations: 283.3 kB / 463 MB, free: 33.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.1939, allocations: 312.3 kB / 463.3 MB, free: 33.41 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001651/0.194, allocations: 167.7 kB / 463.5 MB, free: 33.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.674e-05/0.1941, allocations: 377.3 kB / 463.8 MB, free: 32.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000429/0.1945, allocations: 369.6 kB / 464.2 MB, free: 32.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000457/0.195, allocations: 0.515 MB / 464.7 MB, free: 32.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006866/0.1957, allocations: 0.6915 MB / 465.4 MB, free: 32.14 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1957, allocations: 3.375 kB / 465.4 MB, free: 32.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001365/0.197, allocations: 1.179 MB / 466.6 MB, free: 31.65 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.197, allocations: 6.281 kB / 466.6 MB, free: 31.65 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.1971, allocations: 6.422 kB / 466.6 MB, free: 31.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006928/0.1977, allocations: 0.5835 MB / 467.2 MB, free: 31.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.198, allocations: 143.3 kB / 467.3 MB, free: 31.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/0.1998, allocations: 3.738 MB / 471.1 MB, free: 28.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004622/0.2002, allocations: 150.2 kB / 471.2 MB, free: 28.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.155e-05/0.2003, allocations: 34.91 kB / 471.3 MB, free: 28.06 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.0002216/0.2005, allocations: 229.2 kB / 471.5 MB, free: 27.87 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.2006, allocations: 73.41 kB / 471.5 MB, free: 27.83 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.106e-05/0.2007, allocations: 91.25 kB / 471.6 MB, free: 27.77 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2007, allocations: 9.312 kB / 471.6 MB, free: 27.77 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.615e-06/0.2007, allocations: 0 / 471.6 MB, free: 27.77 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.2007, allocations: 10.69 kB / 471.7 MB, free: 27.76 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.2028, allocations: 2 MB / 473.7 MB, free: 26.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2028, allocations: 0 / 473.7 MB, free: 26.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002765/0.203, allocations: 124.9 kB / 473.8 MB, free: 26.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000598/0.2036, allocations: 0.5309 MB / 474.3 MB, free: 26.45 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.286e-05/0.2037, allocations: 31.94 kB / 474.3 MB, free: 26.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001505/0.2052, allocations: 3.533 MB / 477.9 MB, free: 23.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2052, allocations: 0.875 kB / 477.9 MB, free: 23.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001685/0.2069, allocations: 1.73 MB / 479.6 MB, free: 22.37 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002015/0.2071, allocations: 152.5 kB / 479.8 MB, free: 22.29 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.143e-05/0.2071, allocations: 32.97 kB / 479.8 MB, free: 22.27 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004107/0.2076, allocations: 122 kB / 479.9 MB, free: 22.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002479/0.2078, allocations: 199.7 kB / 480.1 MB, free: 22.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.639e-05/0.2078, allocations: 37.53 kB / 480.1 MB, free: 22.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002048/0.208, allocations: 323.8 kB / 480.5 MB, free: 22.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.208, allocations: 0 / 480.5 MB, free: 22.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005609/0.2086, allocations: 206.8 kB / 480.7 MB, free: 22.03 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.002384/0.211, allocations: 2.577 MB / 483.2 MB, free: 20.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001245/0.2122, allocations: 0.9893 MB / 484.2 MB, free: 20.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2122, allocations: 4.125 kB / 484.2 MB, free: 20.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006562/0.2129, allocations: 0.6022 MB / 484.8 MB, free: 19.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006434/0.2135, allocations: 137.6 kB / 485 MB, free: 19.73 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00834/0.2219, allocations: 7.13 MB / 492.1 MB, free: 15.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.2221, allocations: 337.8 kB / 492.4 MB, free: 15.56 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002697/0.2224, allocations: 84.27 kB / 492.5 MB, free: 15.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000222/0.2226, allocations: 239.9 kB / 492.7 MB, free: 15.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.353e-06/0.2226, allocations: 0 / 492.7 MB, free: 15.36 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03576/0.2584, allocations: 21.11 MB / 0.5018 GB, free: 8.402 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.101/8.359, allocations: 10.86 kB / 0.5018 GB, free: 8.395 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219124 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_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_4.1.0_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.449114190414548]