Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.000835/0.000835, allocations: 79.69 kB / 20.67 MB, free: 3.891 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.0008392/0.0008392, 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.9138/0.9138, allocations: 177.1 MB / 204.3 MB, free: 5.746 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.2402/0.2402, allocations: 34.24 MB / 294.9 MB, free: 0.7266 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.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 442.2 MB, free: 1.695 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.015e-05/1.134e-05, allocations: 2.281 kB / 442.2 MB, free: 1.691 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.1846/0.1846, allocations: 2.648 MB / 444.8 MB, free: 42.67 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007739/0.1854, allocations: 0.7494 MB / 445.6 MB, free: 42.36 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.1855, allocations: 11.72 kB / 445.6 MB, free: 42.36 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001204/0.1856, allocations: 60.09 kB / 445.6 MB, free: 42.32 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001277/0.1858, allocations: 135.3 kB / 445.8 MB, free: 42.23 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002351/0.186, allocations: 111.5 kB / 445.9 MB, free: 42.21 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002239/0.1862, allocations: 453.6 kB / 446.3 MB, free: 42.07 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001599/0.1864, allocations: 100.5 kB / 446.4 MB, free: 42.05 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.1866, allocations: 256.5 kB / 446.7 MB, free: 42.02 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001164/0.1867, allocations: 137.9 kB / 446.8 MB, free: 42 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.265e-05/0.1867, allocations: 33.53 kB / 446.8 MB, free: 42 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.109e-05/0.1868, allocations: 34.72 kB / 446.9 MB, free: 42 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.051e-05/0.1868, allocations: 82.53 kB / 446.9 MB, free: 41.97 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.708e-05/0.1869, allocations: 136.8 kB / 447.1 MB, free: 41.95 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000274/0.1872, allocations: 439.9 kB / 447.5 MB, free: 41.88 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.1872, allocations: 0 / 447.5 MB, free: 41.88 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1872, allocations: 0 / 447.5 MB, free: 41.88 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.1872, allocations: 0 / 447.5 MB, free: 41.88 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0005298/0.1877, allocations: 0.5792 MB / 448.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.1878, allocations: 16.64 kB / 448.1 MB, free: 41.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.179e-05/0.1878, allocations: 70.88 kB / 448.2 MB, free: 41.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.1879, allocations: 67.39 kB / 448.2 MB, free: 41.43 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.1882, allocations: 219.7 kB / 448.5 MB, free: 41.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.1882, allocations: 28.34 kB / 448.5 MB, free: 41.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.1882, allocations: 41.58 kB / 448.5 MB, free: 41.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003226/0.1885, allocations: 389 kB / 448.9 MB, free: 41.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.1886, allocations: 16.42 kB / 448.9 MB, free: 41.02 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.1886, allocations: 15 kB / 448.9 MB, free: 41.01 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.1886, allocations: 11.44 kB / 448.9 MB, free: 41.01 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002183/0.1888, allocations: 225.3 kB / 449.2 MB, free: 40.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009491/0.1897, allocations: 1.599 MB / 450.8 MB, free: 39.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002053/0.19, allocations: 258.3 kB / 451 MB, free: 39.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.996e-05/0.19, allocations: 93.36 kB / 451.1 MB, free: 39.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.19, allocations: 2.844 kB / 451.1 MB, free: 39.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.525e-05/0.1901, allocations: 53.86 kB / 451.2 MB, free: 39.31 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 1.302e-06/0.1901, allocations: 0 / 451.2 MB, free: 39.31 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0003769/0.1904, allocations: 268.7 kB / 451.4 MB, free: 39.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.1905, allocations: 208.6 kB / 451.6 MB, free: 38.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001334/0.1906, allocations: 293.6 kB / 451.9 MB, free: 38.78 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.837e-06/0.1906, allocations: 29.7 kB / 451.9 MB, free: 38.74 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.21e-05/0.1907, allocations: 253 kB / 452.2 MB, free: 38.52 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.705e-05/0.1907, allocations: 119 kB / 452.3 MB, free: 38.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.018e-05/0.1908, allocations: 101.2 kB / 452.4 MB, free: 38.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.77e-05/0.1908, allocations: 344.9 kB / 452.7 MB, free: 38.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.1909, allocations: 101 kB / 452.8 MB, free: 38.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.1911, allocations: 425.2 kB / 453.3 MB, free: 37.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000306/0.1914, allocations: 0.5718 MB / 453.8 MB, free: 36.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.718e-06/0.1914, allocations: 9.469 kB / 453.8 MB, free: 36.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0004/0.1918, allocations: 0.5235 MB / 454.4 MB, free: 36.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.1918, allocations: 8.625 kB / 454.4 MB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.1918, allocations: 13.91 kB / 454.4 MB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.1918, allocations: 17.38 kB / 454.4 MB, free: 36.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.192, allocations: 150.6 kB / 454.5 MB, free: 36.74 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.192, allocations: 26.19 kB / 454.6 MB, free: 36.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000139/0.1922, allocations: 63.06 kB / 454.6 MB, free: 36.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.832e-05/0.1922, allocations: 36.41 kB / 454.7 MB, free: 36.69 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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 7.862e-05/0.1923, allocations: 184.4 kB / 454.9 MB, free: 36.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.884e-05/0.1923, allocations: 30.16 kB / 454.9 MB, free: 36.51 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.346e-05/0.1924, allocations: 33.88 kB / 454.9 MB, free: 36.48 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.1924, allocations: 5.781 kB / 454.9 MB, free: 36.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1924, allocations: 2.844 kB / 454.9 MB, free: 36.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1924, allocations: 3.141 kB / 454.9 MB, free: 36.48 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006171/0.193, allocations: 0.6095 MB / 455.5 MB, free: 36.03 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.193, allocations: 2.594 kB / 455.5 MB, free: 36.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002188/0.1932, allocations: 94.17 kB / 455.6 MB, free: 36.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1932, allocations: 2.906 kB / 455.6 MB, free: 36.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/0.1932, allocations: 12.98 kB / 455.6 MB, free: 36.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.1932, allocations: 6.938 kB / 455.7 MB, free: 36.01 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1933, allocations: 2.531 kB / 455.7 MB, free: 36.01 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002938/0.1935, allocations: 0.8264 MB / 456.5 MB, free: 35.33 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.164e-05/0.1936, allocations: 38.41 kB / 456.5 MB, free: 35.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.1936, allocations: 9.75 kB / 456.5 MB, free: 35.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.1938, allocations: 13.62 kB / 456.5 MB, free: 35.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.1938, allocations: 27.53 kB / 456.6 MB, free: 35.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.106e-06/0.1938, allocations: 15.83 kB / 456.6 MB, free: 35.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.371e-05/0.1939, allocations: 186.1 kB / 456.8 MB, free: 35.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1939, allocations: 0 / 456.8 MB, free: 35.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004063/0.1943, allocations: 98.11 kB / 456.9 MB, free: 35.15 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * 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 (26): * Single equations (assignments): 26 * 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.0003592/0.1947, allocations: 1.378 MB / 458.2 MB, free: 33.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002503/0.1949, allocations: 282.5 kB / 458.5 MB, free: 33.85 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1949, allocations: 0 / 458.5 MB, free: 33.85 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.776e-05/0.195, allocations: 88.41 kB / 458.6 MB, free: 33.82 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005681/0.1956, allocations: 66.7 kB / 458.7 MB, free: 33.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.1978, allocations: 4.548 MB / 463.2 MB, free: 30.12 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000103/0.1979, allocations: 204.1 kB / 463.4 MB, free: 30.03 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 7.737e-05/0.198, allocations: 39.75 kB / 463.5 MB, free: 30.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.403e-05/0.1981, allocations: 120.3 kB / 463.6 MB, free: 29.93 MB / 410.7 MB Notification: Performance of SimCode: time 5.61e-07/0.1981, allocations: 0 / 463.6 MB, free: 29.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01681/0.2149, allocations: 7.472 MB / 471 MB, free: 28.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.856/7.071, allocations: 14.89 kB / 471.1 MB, free: 28.46 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.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: 9.121038786135614]