Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001147/0.001147, allocations: 87.69 kB / 20.67 MB, free: 3.883 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.0009849/0.0009849, allocations: 165.3 kB / 23.95 MB, free: 0.6055 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.8696/0.8696, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2333/0.2333, allocations: 32.79 MB / 293.5 MB, free: 1.223 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.TestFriction,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 439.6 MB, free: 4.293 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.061e-05/2.223e-05, allocations: 14.72 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004761/0.004783, allocations: 3.75 MB / 443.3 MB, free: 0.5 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1799/0.1847, allocations: 1.427 MB / 444.7 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002957/0.185, allocations: 15.78 kB / 444.8 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003425/0.1853, allocations: 135.7 kB / 444.9 MB, free: 43.22 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004097/0.1857, allocations: 305 kB / 445.2 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004726/0.1862, allocations: 358.9 kB / 445.5 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005038/0.1867, allocations: 1.122 MB / 446.7 MB, free: 42.9 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.1869, allocations: 129 kB / 446.8 MB, free: 42.84 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004709/0.1874, allocations: 0.659 MB / 447.4 MB, free: 42.58 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003286/0.1877, allocations: 430.2 kB / 447.9 MB, free: 42.47 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.189e-05/0.1878, allocations: 83.47 kB / 447.9 MB, free: 42.47 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001865/0.188, allocations: 141.5 kB / 448.1 MB, free: 42.45 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.1881, allocations: 232.7 kB / 448.3 MB, free: 42.33 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001752/0.1883, allocations: 304.3 kB / 448.6 MB, free: 42.2 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006553/0.1889, allocations: 1.087 MB / 449.7 MB, free: 41.82 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.189, allocations: 2.75 kB / 449.7 MB, free: 41.82 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.189, allocations: 4 kB / 449.7 MB, free: 41.82 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.189, allocations: 0 / 449.7 MB, free: 41.82 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.001202/0.1902, allocations: 1.093 MB / 450.8 MB, free: 41.15 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.1902, allocations: 11.62 kB / 450.8 MB, free: 41.15 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.22e-05/0.1903, allocations: 104.2 kB / 450.9 MB, free: 41.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002579/0.1905, allocations: 129.9 kB / 451 MB, free: 41.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004681/0.191, allocations: 416.6 kB / 451.4 MB, free: 40.73 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.457e-05/0.191, allocations: 50.03 kB / 451.5 MB, free: 40.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.742e-05/0.1911, allocations: 66.39 kB / 451.6 MB, free: 40.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008387/0.192, allocations: 0.8266 MB / 452.4 MB, free: 40.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.429e-05/0.192, allocations: 10.67 kB / 452.4 MB, free: 40.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.604e-05/0.192, allocations: 25.5 kB / 452.4 MB, free: 40.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.192, allocations: 20.78 kB / 452.4 MB, free: 40.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009077/0.1929, allocations: 0.7286 MB / 453.2 MB, free: 40.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002228/0.1952, allocations: 2.346 MB / 455.5 MB, free: 38.53 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008746/0.1961, allocations: 0.6174 MB / 456.1 MB, free: 38.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004068/0.1965, allocations: 356.8 kB / 456.5 MB, free: 38.09 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.933e-05/0.1965, allocations: 9 kB / 456.5 MB, free: 38.09 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.1965, allocations: 48.31 kB / 456.5 MB, free: 38.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=79): time 3.046e-06/0.1965, allocations: 0 / 456.5 MB, free: 38.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=83): time 0.004269/0.2008, allocations: 2.961 MB / 459.5 MB, free: 36.58 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.2008, allocations: 137.7 kB / 459.6 MB, free: 36.42 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003756/0.2012, allocations: 482.3 kB / 460.1 MB, free: 36.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.2013, allocations: 54.8 kB / 460.2 MB, free: 36.15 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.2014, allocations: 283.9 kB / 460.4 MB, free: 35.92 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000131/0.2015, allocations: 297.5 kB / 460.7 MB, free: 35.7 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.2017, allocations: 174.9 kB / 460.9 MB, free: 35.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.076e-05/0.2018, allocations: 366.7 kB / 461.3 MB, free: 35.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004527/0.2022, allocations: 370.4 kB / 461.6 MB, free: 35.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004959/0.2027, allocations: 0.5187 MB / 462.1 MB, free: 34.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007688/0.2035, allocations: 0.6981 MB / 462.8 MB, free: 34.43 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.2035, allocations: 0 / 462.8 MB, free: 34.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.001585/0.2051, allocations: 1.192 MB / 464 MB, free: 33.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.345e-05/0.2051, allocations: 6.719 kB / 464 MB, free: 33.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.2051, allocations: 3.25 kB / 464 MB, free: 33.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000876/0.206, allocations: 0.5768 MB / 464.6 MB, free: 33.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.2063, allocations: 145.9 kB / 464.8 MB, free: 33.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002134/0.2084, allocations: 3.733 MB / 468.5 MB, free: 30.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005948/0.209, allocations: 143.6 kB / 468.6 MB, free: 30.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.773e-05/0.2091, allocations: 40.31 kB / 468.7 MB, free: 30.35 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.0003618/0.2094, allocations: 220 kB / 468.9 MB, free: 30.17 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.2096, allocations: 77.41 kB / 469 MB, free: 30.13 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.216e-05/0.2096, allocations: 91.27 kB / 469 MB, free: 30.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.2097, allocations: 9.531 kB / 469.1 MB, free: 30.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.389e-05/0.2097, allocations: 9.656 kB / 469.1 MB, free: 30.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.2097, allocations: 10.45 kB / 469.1 MB, free: 30.05 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00243/0.2121, allocations: 1.996 MB / 471.1 MB, free: 28.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.227e-06/0.2121, allocations: 0 / 471.1 MB, free: 28.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002888/0.2124, allocations: 116.2 kB / 471.2 MB, free: 28.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006793/0.2131, allocations: 0.54 MB / 471.7 MB, free: 28.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.652e-05/0.2131, allocations: 34.14 kB / 471.8 MB, free: 28.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001717/0.2148, allocations: 3.538 MB / 475.3 MB, free: 25.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.2148, allocations: 1.688 kB / 475.3 MB, free: 25.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001877/0.2167, allocations: 1.72 MB / 477 MB, free: 24.69 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002686/0.217, allocations: 155.4 kB / 477.2 MB, free: 24.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.545e-05/0.2171, allocations: 29.56 kB / 477.2 MB, free: 24.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004341/0.2175, allocations: 125.8 kB / 477.3 MB, free: 24.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003132/0.2178, allocations: 197.7 kB / 477.5 MB, free: 24.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.07e-05/0.2179, allocations: 36.67 kB / 477.5 MB, free: 24.52 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002666/0.2181, allocations: 326.3 kB / 477.9 MB, free: 24.38 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2181, allocations: 3.125 kB / 477.9 MB, free: 24.38 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007119/0.2188, allocations: 207.2 kB / 478.1 MB, free: 24.35 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.002806/0.2216, allocations: 2.575 MB / 480.6 MB, free: 22.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.2231, allocations: 0.9871 MB / 481.6 MB, free: 22.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2231, allocations: 0 / 481.6 MB, free: 22.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006623/0.2237, allocations: 0.6111 MB / 482.2 MB, free: 22.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006694/0.2244, allocations: 127.7 kB / 482.4 MB, free: 22.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008025/0.2324, allocations: 7.137 MB / 489.5 MB, free: 18.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/0.2327, allocations: 339.2 kB / 489.8 MB, free: 17.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002605/0.233, allocations: 81.86 kB / 489.9 MB, free: 17.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002407/0.2332, allocations: 243 kB / 490.2 MB, free: 17.69 MB / 410.7 MB Notification: Performance of SimCode: time 1.874e-06/0.2332, allocations: 0 / 490.2 MB, free: 17.69 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05147/0.2847, allocations: 21.11 MB / 0.4993 GB, free: 11.81 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.142/8.427, allocations: 7.875 kB / 0.4993 GB, free: 11.8 MB / 410.7 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219124 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_TestFriction.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestFriction/TestFriction.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.50670212507248]