Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.0008882/0.0008882, allocations: 79.7 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.0008829/0.0008829, 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.894/0.894, allocations: 177.1 MB / 204.2 MB, free: 5.727 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.2333/0.2333, allocations: 34.25 MB / 294.9 MB, free: 0.7148 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.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 442.1 MB, free: 1.695 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.083e-05/2.295e-05, allocations: 4.25 kB / 442.1 MB, free: 1.691 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.1872/0.1872, allocations: 1.877 MB / 444 MB, free: 43.24 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.000668/0.1879, allocations: 0.5271 MB / 444.5 MB, free: 43.19 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.536e-05/0.188, allocations: 2.688 kB / 444.6 MB, free: 43.19 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000103/0.1881, allocations: 21.91 kB / 444.6 MB, free: 43.18 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.552e-05/0.1881, allocations: 47.23 kB / 444.6 MB, free: 43.17 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001839/0.1883, allocations: 55.83 kB / 444.7 MB, free: 43.16 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.1884, allocations: 152.3 kB / 444.8 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.1885, allocations: 43.5 kB / 444.9 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.1887, allocations: 96.45 kB / 445 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.237e-05/0.1887, allocations: 41.28 kB / 445 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.1888, allocations: 18.19 kB / 445 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.083e-05/0.1888, allocations: 14.53 kB / 445 MB, free: 43.1 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.724e-05/0.1888, allocations: 32.83 kB / 445.1 MB, free: 43.09 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.072e-05/0.1888, allocations: 42.78 kB / 445.1 MB, free: 43.09 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001575/0.189, allocations: 165.3 kB / 445.3 MB, free: 43.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.189, allocations: 6.844 kB / 445.3 MB, free: 43.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.189, allocations: 0 / 445.3 MB, free: 43.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.189, allocations: 0 / 445.3 MB, free: 43.07 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0003701/0.1894, allocations: 357.3 kB / 445.6 MB, free: 42.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.1894, allocations: 11.78 kB / 445.6 MB, free: 42.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.885e-05/0.1895, allocations: 44.88 kB / 445.7 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.135e-05/0.1895, allocations: 26.58 kB / 445.7 MB, free: 42.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.1897, allocations: 152.6 kB / 445.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.015e-05/0.1897, allocations: 7.25 kB / 445.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.1897, allocations: 15.03 kB / 445.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001662/0.1899, allocations: 128.3 kB / 446 MB, free: 42.56 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.1899, allocations: 4.141 kB / 446 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.1899, allocations: 11.97 kB / 446 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1899, allocations: 2.469 kB / 446 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00011/0.1901, allocations: 80.58 kB / 446.1 MB, free: 42.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004086/0.1905, allocations: 410.8 kB / 446.5 MB, free: 42.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00014/0.1906, allocations: 103.5 kB / 446.6 MB, free: 42.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.925e-05/0.1907, allocations: 56.98 kB / 446.7 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.1907, allocations: 2.344 kB / 446.7 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.368e-05/0.1907, allocations: 38.81 kB / 446.7 MB, free: 42.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 1.924e-06/0.1907, allocations: 3.375 kB / 446.7 MB, free: 42.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.0007963/0.1915, allocations: 0.6564 MB / 447.4 MB, free: 41.85 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.049e-05/0.1915, allocations: 53.91 kB / 447.4 MB, free: 41.79 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.295e-05/0.1916, allocations: 147.9 kB / 447.6 MB, free: 41.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.482e-06/0.1916, allocations: 25.7 kB / 447.6 MB, free: 41.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.185e-05/0.1916, allocations: 113.8 kB / 447.7 MB, free: 41.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.25e-05/0.1916, allocations: 74.53 kB / 447.8 MB, free: 41.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.1917, allocations: 36.05 kB / 447.8 MB, free: 41.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.017e-05/0.1917, allocations: 324.9 kB / 448.1 MB, free: 41.13 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.259e-05/0.1918, allocations: 46.97 kB / 448.2 MB, free: 41.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.87e-05/0.1918, allocations: 76.34 kB / 448.2 MB, free: 41.07 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001189/0.1919, allocations: 141.9 kB / 448.4 MB, free: 40.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.1919, allocations: 3.938 kB / 448.4 MB, free: 40.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0001887/0.1921, allocations: 206.7 kB / 448.6 MB, free: 40.88 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.1921, allocations: 2.938 kB / 448.6 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1921, allocations: 6.906 kB / 448.6 MB, free: 40.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001096/0.1922, allocations: 43.77 kB / 448.6 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000101/0.1924, allocations: 35.2 kB / 448.7 MB, free: 40.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007334/0.1931, allocations: 1.613 MB / 450.3 MB, free: 39.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.956e-05/0.1931, allocations: 9.953 kB / 450.3 MB, free: 39.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.1931, allocations: 12.84 kB / 450.3 MB, free: 39.33 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 6.555e-05/0.1932, allocations: 138.1 kB / 450.4 MB, free: 39.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.1932, allocations: 12.55 kB / 450.4 MB, free: 39.19 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.906e-05/0.1932, allocations: 18.19 kB / 450.5 MB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1932, allocations: 2.875 kB / 450.5 MB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.1932, allocations: 6.359 kB / 450.5 MB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.1932, allocations: 3.938 kB / 450.5 MB, free: 39.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003904/0.1936, allocations: 0.505 MB / 451 MB, free: 38.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.1936, allocations: 0 / 451 MB, free: 38.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.496e-05/0.1937, allocations: 34.56 kB / 451 MB, free: 38.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.127e-05/0.1938, allocations: 37.53 kB / 451.1 MB, free: 38.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.1938, allocations: 2.906 kB / 451.1 MB, free: 38.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004205/0.1942, allocations: 1.369 MB / 452.4 MB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1942, allocations: 6.875 kB / 452.4 MB, free: 37.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.1944, allocations: 343.1 kB / 452.8 MB, free: 37.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.147e-06/0.1945, allocations: 15.56 kB / 452.8 MB, free: 37.21 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.578e-06/0.1945, allocations: 2.844 kB / 452.8 MB, free: 37.21 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.665e-05/0.1945, allocations: 7.562 kB / 452.8 MB, free: 37.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.195e-05/0.1945, allocations: 22.47 kB / 452.8 MB, free: 37.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.209e-06/0.1945, allocations: 5.531 kB / 452.8 MB, free: 37.2 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.114e-05/0.1946, allocations: 110.5 kB / 452.9 MB, free: 37.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1946, allocations: 0 / 452.9 MB, free: 37.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002052/0.1948, allocations: 46.06 kB / 453 MB, free: 37.11 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003203/0.1951, allocations: 0.8657 MB / 453.8 MB, free: 36.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002636/0.1954, allocations: 255.3 kB / 454.1 MB, free: 36.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.1954, allocations: 128 / 454.1 MB, free: 36.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.1955, allocations: 193.1 kB / 454.3 MB, free: 36.06 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.1957, allocations: 23.38 kB / 454.3 MB, free: 36.05 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001167/0.1969, allocations: 2.018 MB / 456.3 MB, free: 34.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.099e-05/0.1969, allocations: 111.2 kB / 456.4 MB, free: 34.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.399e-05/0.1969, allocations: 10.61 kB / 456.4 MB, free: 34.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.016e-05/0.197, allocations: 44.59 kB / 456.5 MB, free: 34.35 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.197, allocations: 0 / 456.5 MB, free: 34.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01628/0.2133, allocations: 4.179 MB / 460.7 MB, free: 33.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.364/7.577, allocations: 10.06 kB / 460.7 MB, free: 33.22 MB / 410.7 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 ModelicaTest_4_1_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable J2.phi in file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.phi from file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! Error: Could not read variable J2.w in file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv. Warning: Get data of variable J2.w from file ModelicaTest_4.1.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.623681229539216]