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.001451/0.001451, allocations: 117 kB / 18.49 MB, free: 4.566 MB / 14.72 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.001861/0.001861, allocations: 216.7 kB / 21.46 MB, free: 1.613 MB / 14.72 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 1.511/1.511, allocations: 230.4 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] 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.2386/0.2386, allocations: 46.93 MB / 357.7 MB, free: 10.19 MB / 286.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003497/0.003497, allocations: 75.88 kB / 0.4916 GB, free: 7.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.179, allocations: 66.05 MB / 0.5561 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003621/0.1826, allocations: 1.921 MB / 0.558 GB, free: 3.637 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001183/0.1838, allocations: 0.5804 MB / 0.5586 GB, free: 3.051 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001075/0.1839, allocations: 4 kB / 0.5586 GB, free: 3.047 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.184, allocations: 23.73 kB / 0.5586 GB, free: 3.023 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.1842, allocations: 43.62 kB / 0.5586 GB, free: 2.98 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.1844, allocations: 47.88 kB / 0.5587 GB, free: 2.934 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002174/0.1847, allocations: 147.3 kB / 0.5588 GB, free: 2.789 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/0.1848, allocations: 49.62 kB / 0.5589 GB, free: 2.738 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.185, allocations: 63.84 kB / 0.5589 GB, free: 2.676 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.1852, allocations: 71.62 kB / 0.559 GB, free: 2.605 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.504e-05/0.1852, allocations: 12 kB / 0.559 GB, free: 2.594 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.72e-05/0.1853, allocations: 20 kB / 0.559 GB, free: 2.574 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.489e-05/0.1853, allocations: 27.86 kB / 0.5591 GB, free: 2.547 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.49e-05/0.1854, allocations: 67.67 kB / 0.5591 GB, free: 2.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000285/0.1857, allocations: 159.3 kB / 0.5593 GB, free: 2.324 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1857, allocations: 0 / 0.5593 GB, free: 2.324 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1857, allocations: 0 / 0.5593 GB, free: 2.324 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.563e-06/0.1857, allocations: 0 / 0.5593 GB, free: 2.324 MB / 414.1 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.0007095/0.1864, allocations: 438.8 kB / 0.5597 GB, free: 1.848 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.1864, allocations: 8.031 kB / 0.5597 GB, free: 1.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.399e-05/0.1865, allocations: 4.188 kB / 0.5597 GB, free: 1.836 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.87e-05/0.1865, allocations: 46.73 kB / 0.5598 GB, free: 1.781 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00016/0.1867, allocations: 24.84 kB / 0.5598 GB, free: 1.758 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003219/0.187, allocations: 212.1 kB / 0.56 GB, free: 1.512 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.187, allocations: 8.375 kB / 0.56 GB, free: 1.504 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.187, allocations: 28.08 kB / 0.56 GB, free: 1.477 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002847/0.1873, allocations: 129.6 kB / 0.5601 GB, free: 1.344 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.1874, allocations: 3.984 kB / 0.5601 GB, free: 1.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.1874, allocations: 8 kB / 0.5602 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.1874, allocations: 0 / 0.5602 GB, free: 1.332 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000198/0.1876, allocations: 79.94 kB / 0.5602 GB, free: 1.254 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007683/0.1883, allocations: 472.3 kB / 0.5607 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/0.1886, allocations: 110.5 kB / 0.5608 GB, free: 0.625 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000115/0.1887, allocations: 52.77 kB / 0.5608 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.601e-05/0.1887, allocations: 4 kB / 0.5608 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.056e-05/0.1887, allocations: 34.56 kB / 0.5609 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of pre-optimization done (n=13): time 1.914e-06/0.1887, allocations: 3.938 kB / 0.5609 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of matching and sorting (n=19): time 0.001658/0.1904, allocations: 0.819 MB / 0.5617 GB, free: 15.61 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.1904, allocations: 51.41 kB / 0.5617 GB, free: 15.55 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.1906, allocations: 145.6 kB / 0.5619 GB, free: 15.39 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.1906, allocations: 29.7 kB / 0.5619 GB, free: 15.36 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.995e-05/0.1907, allocations: 116.4 kB / 0.562 GB, free: 15.24 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.385e-05/0.1908, allocations: 67.39 kB / 0.5621 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.797e-05/0.1908, allocations: 37.7 kB / 0.5621 GB, free: 15.13 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.191, allocations: 322.8 kB / 0.5624 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.1911, allocations: 43.98 kB / 0.5625 GB, free: 14.76 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001406/0.1912, allocations: 79.34 kB / 0.5625 GB, free: 14.67 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.1915, allocations: 139.3 kB / 0.5627 GB, free: 14.52 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.1915, allocations: 0 / 0.5627 GB, free: 14.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004388/0.1919, allocations: 202.2 kB / 0.5629 GB, free: 14.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.1919, allocations: 9.719 kB / 0.5629 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.1919, allocations: 8.078 kB / 0.5629 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001917/0.1921, allocations: 44.84 kB / 0.5629 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001796/0.1923, allocations: 39.91 kB / 0.5629 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001732/0.194, allocations: 1.732 MB / 0.5646 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.777e-05/0.1941, allocations: 4.031 kB / 0.5646 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.897e-05/0.1942, allocations: 8 kB / 0.5647 GB, free: 12.33 MB / 430.1 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 0.0001491/0.1943, allocations: 133.8 kB / 0.5648 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.1944, allocations: 11.91 kB / 0.5648 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.414e-05/0.1944, allocations: 25.11 kB / 0.5648 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.1944, allocations: 4 kB / 0.5648 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1944, allocations: 0 / 0.5648 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.1944, allocations: 0 / 0.5648 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008792/0.1953, allocations: 0.5469 MB / 0.5654 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.1953, allocations: 8 kB / 0.5654 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.1955, allocations: 35.97 kB / 0.5654 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001303/0.1956, allocations: 28.84 kB / 0.5654 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/0.1956, allocations: 8 kB / 0.5654 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001324/0.197, allocations: 1.477 MB / 0.5669 GB, free: 9.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.197, allocations: 0 / 0.5669 GB, free: 9.84 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005665/0.1975, allocations: 349.7 kB / 0.5672 GB, free: 9.48 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.593e-05/0.1976, allocations: 89.05 kB / 0.5673 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.1976, allocations: 11.94 kB / 0.5673 GB, free: 9.363 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.614e-05/0.1977, allocations: 3.938 kB / 0.5673 GB, free: 9.359 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.419e-05/0.1978, allocations: 19.97 kB / 0.5673 GB, free: 9.34 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.1978, allocations: 8.062 kB / 0.5673 GB, free: 9.332 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.755e-05/0.1979, allocations: 109.7 kB / 0.5674 GB, free: 9.227 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1979, allocations: 3.938 kB / 0.5674 GB, free: 9.223 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003554/0.1982, allocations: 40 kB / 0.5675 GB, free: 9.184 MB / 430.1 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.0009373/0.1992, allocations: 0.8779 MB / 0.5683 GB, free: 8.273 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0006286/0.1998, allocations: 252.8 kB / 0.5686 GB, free: 8.016 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.1998, allocations: 0 / 0.5686 GB, free: 8.016 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003042/0.2001, allocations: 198.7 kB / 0.5688 GB, free: 7.809 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.2005, allocations: 16.69 kB / 0.5688 GB, free: 7.793 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002885/0.2034, allocations: 2.06 MB / 0.5708 GB, free: 5.629 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.2037, allocations: 0.7205 MB / 0.5715 GB, free: 4.879 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.608e-05/0.2038, allocations: 17.41 kB / 0.5715 GB, free: 4.863 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.803e-05/0.2039, allocations: 43.42 kB / 0.5716 GB, free: 4.82 MB / 430.1 MB Notification: Performance of SimCode: time 1.503e-06/0.2039, allocations: 0 / 0.5716 GB, free: 4.82 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02747/0.2314, allocations: 3.521 MB / 0.575 GB, free: 1.438 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.88, allocations: 6.812 kB / 0.575 GB, free: 1.434 MB / 430.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/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: 14.088276971015148]