Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.000853/0.000853, 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.0009363/0.0009363, allocations: 170 kB / 23.95 MB, free: 0.6133 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.8919/0.8919, allocations: 177.1 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.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.2285/0.2285, allocations: 32.79 MB / 293.5 MB, free: 1.227 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.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.348e-05/1.531e-05, allocations: 4.672 kB / 439.6 MB, free: 4.258 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.002605/0.002621, allocations: 2.658 MB / 442.2 MB, free: 1.582 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.003732, allocations: 0.7361 MB / 443 MB, free: 0.8398 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001867/0.003919, allocations: 11.94 kB / 443 MB, free: 0.8281 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001594/0.004078, allocations: 55.39 kB / 443 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001921/0.00427, allocations: 142.8 kB / 443.2 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003047/0.004575, allocations: 103.8 kB / 443.3 MB, free: 0.5312 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003529/0.004928, allocations: 461.5 kB / 443.7 MB, free: 80 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1802/0.1852, allocations: 99.34 kB / 443.8 MB, free: 43.32 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005833/0.1858, allocations: 257 kB / 444.1 MB, free: 43.32 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002113/0.186, allocations: 125.4 kB / 444.2 MB, free: 43.32 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.725e-05/0.186, allocations: 33.81 kB / 444.2 MB, free: 43.32 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.573e-05/0.1861, allocations: 36.97 kB / 444.3 MB, free: 43.32 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.944e-05/0.1861, allocations: 81.7 kB / 444.3 MB, free: 43.32 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 9.398e-05/0.1862, allocations: 136.6 kB / 444.5 MB, free: 43.32 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.1867, allocations: 445 kB / 444.9 MB, free: 43.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.533e-06/0.1867, allocations: 0 / 444.9 MB, free: 43.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1867, allocations: 2.594 kB / 444.9 MB, free: 43.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.1867, allocations: 0 / 444.9 MB, free: 43.3 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.0007631/0.1874, allocations: 0.5802 MB / 445.5 MB, free: 42.93 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.1875, allocations: 11.34 kB / 445.5 MB, free: 42.93 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.825e-05/0.1876, allocations: 69.73 kB / 445.6 MB, free: 42.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000198/0.1878, allocations: 67.73 kB / 445.6 MB, free: 42.87 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.1881, allocations: 219.3 kB / 445.9 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.1881, allocations: 30.45 kB / 445.9 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.667e-05/0.1882, allocations: 43.2 kB / 445.9 MB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004049/0.1886, allocations: 389.5 kB / 446.3 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.1886, allocations: 16.64 kB / 446.3 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.272e-05/0.1886, allocations: 14.88 kB / 446.3 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.1886, allocations: 13.66 kB / 446.4 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002827/0.1889, allocations: 226.3 kB / 446.6 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.1902, allocations: 1.593 MB / 448.2 MB, free: 41.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002871/0.1905, allocations: 257.7 kB / 448.4 MB, free: 41.34 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.406e-05/0.1906, allocations: 94.36 kB / 448.5 MB, free: 41.28 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.1906, allocations: 6.344 kB / 448.5 MB, free: 41.28 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.1907, allocations: 43.02 kB / 448.6 MB, free: 41.24 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 2.475e-06/0.1907, allocations: 2.438 kB / 448.6 MB, free: 41.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004233/0.1911, allocations: 265.4 kB / 448.8 MB, free: 41.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.1911, allocations: 215.3 kB / 449 MB, free: 40.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001585/0.1913, allocations: 289.9 kB / 449.3 MB, free: 40.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.1913, allocations: 28.95 kB / 449.3 MB, free: 40.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.1914, allocations: 245 kB / 449.6 MB, free: 40.59 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.009e-05/0.1914, allocations: 132.2 kB / 449.7 MB, free: 40.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.247e-05/0.1915, allocations: 95.14 kB / 449.8 MB, free: 40.44 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.564e-05/0.1915, allocations: 348.4 kB / 450.1 MB, free: 40.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001147/0.1916, allocations: 99.77 kB / 450.2 MB, free: 40.08 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.1918, allocations: 426.1 kB / 450.7 MB, free: 39.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003853/0.1922, allocations: 0.574 MB / 451.2 MB, free: 39.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.1922, allocations: 6.875 kB / 451.2 MB, free: 39.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0005348/0.1928, allocations: 0.5293 MB / 451.8 MB, free: 38.92 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.1928, allocations: 11.25 kB / 451.8 MB, free: 38.92 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.1928, allocations: 11.5 kB / 451.8 MB, free: 38.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.967e-05/0.1928, allocations: 16.5 kB / 451.8 MB, free: 38.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002418/0.1931, allocations: 147.5 kB / 452 MB, free: 38.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.1931, allocations: 21.67 kB / 452 MB, free: 38.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.1933, allocations: 59.06 kB / 452 MB, free: 38.87 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.362e-05/0.1933, allocations: 33.19 kB / 452.1 MB, free: 38.86 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 0.00011/0.1934, allocations: 187.1 kB / 452.2 MB, free: 38.7 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.881e-05/0.1935, allocations: 37.41 kB / 452.3 MB, free: 38.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.484e-05/0.1935, allocations: 33.77 kB / 452.3 MB, free: 38.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1935, allocations: 7 kB / 452.3 MB, free: 38.65 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.1935, allocations: 3.031 kB / 452.3 MB, free: 38.65 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1935, allocations: 6.047 kB / 452.3 MB, free: 38.65 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000733/0.1943, allocations: 0.5992 MB / 452.9 MB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.1943, allocations: 4.938 kB / 452.9 MB, free: 38.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.1945, allocations: 86.36 kB / 453 MB, free: 38.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.1945, allocations: 7.031 kB / 453 MB, free: 38.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.781e-05/0.1945, allocations: 15.55 kB / 453 MB, free: 38.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.1945, allocations: 6.844 kB / 453 MB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.1945, allocations: 3 kB / 453.1 MB, free: 38.19 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003921/0.1949, allocations: 0.8416 MB / 453.9 MB, free: 37.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.99e-05/0.195, allocations: 30.62 kB / 453.9 MB, free: 37.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.909e-05/0.195, allocations: 6.656 kB / 453.9 MB, free: 37.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/0.1952, allocations: 13.03 kB / 453.9 MB, free: 37.47 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.905e-05/0.1953, allocations: 34.59 kB / 454 MB, free: 37.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.1953, allocations: 6.375 kB / 454 MB, free: 37.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.884e-05/0.1954, allocations: 185.1 kB / 454.2 MB, free: 37.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1954, allocations: 0 / 454.2 MB, free: 37.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005152/0.1959, allocations: 98.11 kB / 454.3 MB, free: 37.34 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.0005648/0.1964, allocations: 1.385 MB / 455.6 MB, free: 36.11 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003484/0.1968, allocations: 284.7 kB / 455.9 MB, free: 36.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1968, allocations: 0 / 455.9 MB, free: 36.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.597e-05/0.1969, allocations: 89.88 kB / 456 MB, free: 36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006273/0.1975, allocations: 74.7 kB / 456.1 MB, free: 35.97 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002818/0.2003, allocations: 4.541 MB / 460.6 MB, free: 32.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001368/0.2005, allocations: 197.6 kB / 460.8 MB, free: 32.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001126/0.2006, allocations: 40.61 kB / 460.9 MB, free: 32.22 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.166e-05/0.2007, allocations: 121.9 kB / 461 MB, free: 32.13 MB / 410.7 MB Notification: Performance of SimCode: time 8.22e-07/0.2007, allocations: 0 / 461 MB, free: 32.13 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01846/0.2191, allocations: 7.479 MB / 468.5 MB, free: 30.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.747/6.966, allocations: 8.859 kB / 468.5 MB, free: 30.66 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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: 8.93058324418962]