Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001062/0.001062, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.001402/0.001402, allocations: 156.9 kB / 23.94 MB, free: 0.6172 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.9251/0.9251, allocations: 177 MB / 204.1 MB, free: 5.723 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.245/0.245, allocations: 34.24 MB / 294.8 MB, free: 0.6953 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.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 442.1 MB, free: 1.574 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.412e-05/2.551e-05, allocations: 2.281 kB / 442.1 MB, free: 1.57 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.176/0.1761, allocations: 2.655 MB / 444.8 MB, free: 43.05 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.1775, allocations: 0.7462 MB / 445.5 MB, free: 42.74 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000234/0.1777, allocations: 16.03 kB / 445.6 MB, free: 42.73 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.1779, allocations: 57.98 kB / 445.6 MB, free: 42.7 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002464/0.1782, allocations: 137.7 kB / 445.7 MB, free: 42.61 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003983/0.1786, allocations: 111.5 kB / 445.9 MB, free: 42.59 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004078/0.179, allocations: 453.2 kB / 446.3 MB, free: 42.45 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002215/0.1792, allocations: 98.19 kB / 446.4 MB, free: 42.43 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004294/0.1796, allocations: 266 kB / 446.7 MB, free: 42.36 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001653/0.1798, allocations: 121.4 kB / 446.8 MB, free: 42.33 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 4.216e-05/0.1798, allocations: 37.16 kB / 446.8 MB, free: 42.32 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.094e-05/0.1799, allocations: 39.03 kB / 446.8 MB, free: 42.32 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.589e-05/0.1799, allocations: 79.53 kB / 446.9 MB, free: 42.27 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 9.462e-05/0.18, allocations: 141.2 kB / 447.1 MB, free: 42.21 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003852/0.1804, allocations: 438.1 kB / 447.5 MB, free: 42.04 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.178e-05/0.1804, allocations: 6 kB / 447.5 MB, free: 42.04 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.737e-06/0.1804, allocations: 0 / 447.5 MB, free: 42.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.477e-06/0.1804, allocations: 0 / 447.5 MB, free: 42.04 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.0007298/0.1812, allocations: 0.5785 MB / 448.1 MB, free: 41.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/0.1812, allocations: 11.62 kB / 448.1 MB, free: 41.6 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.83e-05/0.1813, allocations: 72.58 kB / 448.2 MB, free: 41.54 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002001/0.1815, allocations: 61.53 kB / 448.2 MB, free: 41.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.1819, allocations: 223.1 kB / 448.4 MB, free: 41.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.1819, allocations: 27.53 kB / 448.5 MB, free: 41.32 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.082e-05/0.1819, allocations: 42.3 kB / 448.5 MB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004583/0.1824, allocations: 396.4 kB / 448.9 MB, free: 41.08 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.202e-05/0.1824, allocations: 6.984 kB / 448.9 MB, free: 41.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.397e-05/0.1825, allocations: 22.84 kB / 448.9 MB, free: 41.06 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.1825, allocations: 8.156 kB / 448.9 MB, free: 41.06 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.1827, allocations: 221.1 kB / 449.1 MB, free: 41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001443/0.1842, allocations: 1.605 MB / 450.8 MB, free: 39.69 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002972/0.1845, allocations: 256.6 kB / 451 MB, free: 39.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.49e-05/0.1846, allocations: 97.58 kB / 451.1 MB, free: 39.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.1846, allocations: 2.719 kB / 451.1 MB, free: 39.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.885e-05/0.1846, allocations: 44.31 kB / 451.1 MB, free: 39.36 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 2.885e-06/0.1846, allocations: 4 kB / 451.1 MB, free: 39.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004445/0.1851, allocations: 261.4 kB / 451.4 MB, free: 39.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.1851, allocations: 218.1 kB / 451.6 MB, free: 39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.1853, allocations: 291.6 kB / 451.9 MB, free: 38.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.1853, allocations: 29.7 kB / 451.9 MB, free: 38.79 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.087e-05/0.1854, allocations: 248.3 kB / 452.2 MB, free: 38.58 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.009e-05/0.1854, allocations: 123.1 kB / 452.3 MB, free: 38.48 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.182e-05/0.1855, allocations: 98.56 kB / 452.4 MB, free: 38.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.513e-05/0.1856, allocations: 349.7 kB / 452.7 MB, free: 38.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1857, allocations: 96.84 kB / 452.8 MB, free: 38.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.1859, allocations: 426.1 kB / 453.2 MB, free: 37.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004824/0.1864, allocations: 0.5809 MB / 453.8 MB, free: 37.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/0.1864, allocations: 2.5 kB / 453.8 MB, free: 37.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0005408/0.187, allocations: 0.5217 MB / 454.3 MB, free: 36.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.187, allocations: 10.88 kB / 454.4 MB, free: 36.81 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.187, allocations: 11.44 kB / 454.4 MB, free: 36.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.187, allocations: 17.88 kB / 454.4 MB, free: 36.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002396/0.1873, allocations: 146.6 kB / 454.5 MB, free: 36.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.857e-05/0.1873, allocations: 28.58 kB / 454.6 MB, free: 36.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002036/0.1875, allocations: 62.25 kB / 454.6 MB, free: 36.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.84e-05/0.1875, allocations: 30.72 kB / 454.6 MB, free: 36.74 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.0001283/0.1876, allocations: 184.5 kB / 454.8 MB, free: 36.58 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.118e-05/0.1877, allocations: 36.69 kB / 454.9 MB, free: 36.56 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.796e-05/0.1878, allocations: 37.94 kB / 454.9 MB, free: 36.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.1878, allocations: 5.625 kB / 454.9 MB, free: 36.53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.1878, allocations: 0 / 454.9 MB, free: 36.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.1878, allocations: 6.359 kB / 454.9 MB, free: 36.53 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008157/0.1886, allocations: 0.6108 MB / 455.5 MB, free: 36.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.1886, allocations: 6.438 kB / 455.5 MB, free: 36.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.1889, allocations: 85.19 kB / 455.6 MB, free: 36.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.1889, allocations: 2.75 kB / 455.6 MB, free: 36.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.1889, allocations: 9.406 kB / 455.6 MB, free: 36.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.1889, allocations: 9.5 kB / 455.6 MB, free: 36.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.1889, allocations: 6.75 kB / 455.6 MB, free: 36.05 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000438/0.1894, allocations: 0.8322 MB / 456.5 MB, free: 35.37 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.013e-05/0.1894, allocations: 30.91 kB / 456.5 MB, free: 35.35 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.1894, allocations: 12.88 kB / 456.5 MB, free: 35.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.1896, allocations: 6.844 kB / 456.5 MB, free: 35.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.497e-05/0.1897, allocations: 36.55 kB / 456.6 MB, free: 35.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.1897, allocations: 5.656 kB / 456.6 MB, free: 35.33 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001024/0.1898, allocations: 188 kB / 456.7 MB, free: 35.22 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1898, allocations: 0 / 456.7 MB, free: 35.22 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004831/0.1903, allocations: 99.2 kB / 456.8 MB, free: 35.2 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.0005251/0.1908, allocations: 1.376 MB / 458.2 MB, free: 33.98 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003734/0.1912, allocations: 281.3 kB / 458.5 MB, free: 33.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1912, allocations: 3.938 kB / 458.5 MB, free: 33.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.466e-05/0.1913, allocations: 90.12 kB / 458.6 MB, free: 33.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006742/0.1919, allocations: 69.19 kB / 458.7 MB, free: 33.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.1949, allocations: 4.534 MB / 463.2 MB, free: 30.19 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001466/0.195, allocations: 191.6 kB / 463.4 MB, free: 30.11 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001222/0.1951, allocations: 47.69 kB / 463.4 MB, free: 30.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.47e-05/0.1952, allocations: 121.1 kB / 463.5 MB, free: 30.01 MB / 410.7 MB Notification: Performance of SimCode: time 8.31e-07/0.1952, allocations: 0 / 463.5 MB, free: 30.01 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02188/0.2171, allocations: 7.486 MB / 471 MB, free: 28.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.729/6.946, allocations: 7.406 kB / 471 MB, free: 28.52 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.990364667028189]