Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009118/0.0009118, allocations: 80.34 kB / 20.67 MB, free: 3.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001768/0.001768, allocations: 156.9 kB / 23.95 MB, free: 0.6055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9131/0.9131, allocations: 177 MB / 204.1 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2406/0.2406, allocations: 34.24 MB / 294.8 MB, free: 0.6719 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 442.1 MB, free: 1.578 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.261e-05/2.443e-05, allocations: 2.281 kB / 442.1 MB, free: 1.574 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.1887/0.1887, allocations: 1.876 MB / 444 MB, free: 43.21 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007871/0.1895, allocations: 0.5258 MB / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.294e-05/0.1896, allocations: 8.312 kB / 444.5 MB, free: 43.15 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.1897, allocations: 15.19 kB / 444.6 MB, free: 43.14 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 6.775e-05/0.1897, allocations: 47.69 kB / 444.6 MB, free: 43.12 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002118/0.19, allocations: 56.69 kB / 444.7 MB, free: 43.11 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.1901, allocations: 152.9 kB / 444.8 MB, free: 43.06 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.1902, allocations: 38.12 kB / 444.8 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001545/0.1904, allocations: 94.91 kB / 444.9 MB, free: 43.04 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.076e-05/0.1904, allocations: 56.06 kB / 445 MB, free: 43.03 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.1905, allocations: 14 kB / 445 MB, free: 43.03 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.361e-05/0.1905, allocations: 13.59 kB / 445 MB, free: 43.03 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.699e-05/0.1905, allocations: 25.17 kB / 445 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.405e-05/0.1906, allocations: 48.39 kB / 445.1 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001651/0.1907, allocations: 161.1 kB / 445.3 MB, free: 42.99 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.1907, allocations: 2.75 kB / 445.3 MB, free: 42.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.1907, allocations: 0 / 445.3 MB, free: 42.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.1907, allocations: 0 / 445.3 MB, free: 42.99 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.0003893/0.1911, allocations: 359.5 kB / 445.6 MB, free: 42.69 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.1912, allocations: 11.66 kB / 445.6 MB, free: 42.69 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.969e-05/0.1912, allocations: 48.25 kB / 445.7 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.722e-05/0.1913, allocations: 27.86 kB / 445.7 MB, free: 42.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002088/0.1915, allocations: 142.2 kB / 445.8 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.338e-05/0.1915, allocations: 13.03 kB / 445.8 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.1915, allocations: 16.53 kB / 445.9 MB, free: 42.51 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001743/0.1917, allocations: 124.9 kB / 446 MB, free: 42.48 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.1917, allocations: 7.766 kB / 446 MB, free: 42.47 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.1917, allocations: 10.25 kB / 446 MB, free: 42.47 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1917, allocations: 6.562 kB / 446 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001131/0.1919, allocations: 79.73 kB / 446.1 MB, free: 42.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004237/0.1923, allocations: 413.1 kB / 446.5 MB, free: 42.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.1924, allocations: 102 kB / 446.6 MB, free: 42.18 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.237e-05/0.1925, allocations: 58.28 kB / 446.6 MB, free: 42.17 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.762e-05/0.1925, allocations: 3.891 kB / 446.6 MB, free: 42.17 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.42e-05/0.1925, allocations: 34.5 kB / 446.7 MB, free: 42.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.1925, allocations: 3.938 kB / 446.7 MB, free: 42.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=19): time 0.0008788/0.1934, allocations: 0.6579 MB / 447.3 MB, free: 41.73 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.348e-05/0.1934, allocations: 54.45 kB / 447.4 MB, free: 41.67 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.606e-05/0.1935, allocations: 141.6 kB / 447.5 MB, free: 41.56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.865e-06/0.1935, allocations: 29.7 kB / 447.6 MB, free: 41.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.155e-05/0.1935, allocations: 116.8 kB / 447.7 MB, free: 41.42 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.483e-05/0.1936, allocations: 71.36 kB / 447.7 MB, free: 41.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.768e-05/0.1936, allocations: 36.8 kB / 447.8 MB, free: 41.33 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.281e-05/0.1936, allocations: 325 kB / 448.1 MB, free: 41.01 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.508e-05/0.1937, allocations: 42.03 kB / 448.1 MB, free: 41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.797e-05/0.1938, allocations: 78.36 kB / 448.2 MB, free: 40.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001221/0.1939, allocations: 132.4 kB / 448.3 MB, free: 40.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1939, allocations: 3.938 kB / 448.4 MB, free: 40.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002081/0.1941, allocations: 209.1 kB / 448.6 MB, free: 40.76 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.1941, allocations: 5.812 kB / 448.6 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1941, allocations: 2.875 kB / 448.6 MB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001189/0.1942, allocations: 47.25 kB / 448.6 MB, free: 40.74 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001051/0.1943, allocations: 38.84 kB / 448.6 MB, free: 40.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007332/0.1951, allocations: 1.616 MB / 450.3 MB, free: 39.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.059e-05/0.1951, allocations: 11.75 kB / 450.3 MB, free: 39.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.1951, allocations: 5.688 kB / 450.3 MB, free: 39.21 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.792e-05/0.1952, allocations: 138.9 kB / 450.4 MB, free: 39.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.943e-05/0.1952, allocations: 12.7 kB / 450.4 MB, free: 39.07 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.923e-05/0.1952, allocations: 19.88 kB / 450.4 MB, free: 39.06 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.1952, allocations: 2.906 kB / 450.5 MB, free: 39.06 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1952, allocations: 2.781 kB / 450.5 MB, free: 39.06 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1952, allocations: 3.938 kB / 450.5 MB, free: 39.06 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000408/0.1956, allocations: 0.5062 MB / 451 MB, free: 38.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1956, allocations: 1.438 kB / 451 MB, free: 38.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.557e-05/0.1957, allocations: 40.69 kB / 451 MB, free: 38.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-05/0.1958, allocations: 32.91 kB / 451 MB, free: 38.65 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.766e-06/0.1958, allocations: 0 / 451 MB, free: 38.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004764/0.1963, allocations: 1.368 MB / 452.4 MB, free: 37.33 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1963, allocations: 8.922 kB / 452.4 MB, free: 37.33 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002511/0.1965, allocations: 345.8 kB / 452.8 MB, free: 37.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.098e-05/0.1966, allocations: 13.31 kB / 452.8 MB, free: 37.09 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.949e-06/0.1966, allocations: 10.5 kB / 452.8 MB, free: 37.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.481e-05/0.1966, allocations: 2.5 kB / 452.8 MB, free: 37.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.495e-05/0.1967, allocations: 25.7 kB / 452.8 MB, free: 37.08 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.1967, allocations: 2.812 kB / 452.8 MB, free: 37.08 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.659e-05/0.1967, allocations: 112.1 kB / 452.9 MB, free: 36.99 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1967, allocations: 0 / 452.9 MB, free: 36.99 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002128/0.1969, allocations: 42.31 kB / 453 MB, free: 36.98 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.0003557/0.1973, allocations: 0.8691 MB / 453.8 MB, free: 36.23 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002951/0.1976, allocations: 255.8 kB / 454.1 MB, free: 36.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1976, allocations: 0 / 454.1 MB, free: 36.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.1977, allocations: 196.2 kB / 454.3 MB, free: 35.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.1979, allocations: 24.23 kB / 454.3 MB, free: 35.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001872/0.1998, allocations: 2.006 MB / 456.3 MB, free: 34.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.302e-05/0.1999, allocations: 108.7 kB / 456.4 MB, free: 34.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 5.606e-05/0.1999, allocations: 13.58 kB / 456.4 MB, free: 34.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.796e-05/0.2, allocations: 41.62 kB / 456.5 MB, free: 34.23 MB / 410.7 MB Notification: Performance of SimCode: time 9.02e-07/0.2, allocations: 3.938 kB / 456.5 MB, free: 34.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/0.2233, allocations: 4.177 MB / 460.6 MB, free: 33.11 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.123/7.346, allocations: 2.969 kB / 460.6 MB, free: 33.11 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/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_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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.319042637944221]